http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47449

           Summary: [32] can’t find a register in class ‘DIREG’ while
                    reloading ‘asm’
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: hjl.to...@gmail.com
                CC: ubiz...@gmail.com


[hjl@gnu-6 ilp32-17]$ cat x.c
void bar (void *);
int
foo (void *trans)
{
    int ret;
    __asm __volatile ("foo %0\n\t" : "=D" (ret));
  bar (trans);
  return ret;
}
[hjl@gnu-6 ilp32-17]$ make x.s
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -dp 
x.c
x.c: In function ‘foo’:
x.c:6:5: error: can’t find a register in class ‘DIREG’ while reloading ‘asm’
x.c:6:5: error: ‘asm’ operand has impossible constraints
make: *** [x.s] Error 1
[hjl@gnu-6 ilp32-17]$ 

Uros, any ideas? Thanks.

Reply via email to