Re: Inline asm - only clobber list case sensitive?

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

 



On 11/15/13, 5:26 PM, Michael Weise wrote:
> Hi,
> 
> yesterday I've been facing a strange problem with some inline asm
> code (see below), emitting errors like these:
> (gcc 4.7.3, targetting m68k-elf, Windows 7/64, msys):
> 
[snip]
> 
> asm volatile (
>     "    move.l   %[in1],%%a0 \n" // asm code
>     "    move.l   %[in2],%%A1 \n"
>     "    trap     #8          \n"
>     "    move.b   %%D0,%[out1]\n"
>     "    move.b   %%d1,%[out2]\n"
>     :[out1] "=m" (*pc1),          // output
>      [out2] "=m" (*pc2)
>     :[in1]  "r"  (cmdadr),        // input
>      [in2]  "r"  (DUMRadr)
>     :"%a0","%A1","%d0","%D1",     // clobber list
>      "memory","%CC"
>     );
> 
> Results in:
> rs232_2.c:2433:2: error: unknown register name '%CC' in 'asm'
> rs232_2.c:2433:2: error: unknown register name '%D1' in 'asm'
> rs232_2.c:2433:2: error: unknown register name '%A1' in 'asm'
> 

Hi, Michael,

If you build m68k-elf on your own, you can implement
ADDITIONAL_REGISTER_NAMES in gcc/config/m68k/m68k.h to
define alias register names with upper case.

This can help gcc recognize them. :)


Best regards,
jasonwucj






[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