This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc usage for .set mips32 under -mips16
- From: linsample <sample_lin at ralinktech dot com dot tw>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 18 Sep 2008 06:52:27 -0700 (PDT)
- Subject: gcc usage for .set mips32 under -mips16
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.