gcc usage for .set mips32 under -mips16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, Anybody know can I use .set mips32 under CFLAGS = ...., -mips16, ???
I use gcc version is not larger than 4.3 so I can not use
__attribute__((nomips16)) void a(unsigned long *flags).

Ex: In a function as below

void a(unsigned long *flags)
{
    __asm__ __volatile__ (".set mips32r2");
    local_irq_save(*flags);
}

Why gcc displays the error messages as below:
/tmp/cc3k1Qgi.s: Assembler messages:
/tmp/cc3k1Qgi.s:83: Error: unrecognized opcode `di'
/tmp/cc3k1Qgi.s:83: Error: unrecognized opcode `andi'
/tmp/cc3k1Qgi.s:83: Error: illegal operands `sll'

If I use __asm__ __volatile__ (".set nomips16"); in the function, gcc
displays another error messages as below:

/tmp/ccVKrao9.s: Assembler messages:
/tmp/ccVKrao9.s:83: Error: opcode not supported on this processor: mips32
(mips32) `di $2'

Thanks a lot.

-- 
View this message in context: http://www.nabble.com/gcc-usage-for-.set-mips32-under--mips16-tp19553445p19553445.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux