[LLVMbugs] [Bug 832] register variables not supported by llvm-gcc

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 27 17:24:25 PDT 2006


http://llvm.org/bugs/show_bug.cgi?id=832

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|register variables not      |register variables not
                   |supported by LLVM x86       |supported by llvm-gcc
                   |backend                     |



------- Additional Comments From sabre at nondot.org  2006-07-27 19:24 -------
This is fixed in llvm-gcc4 mainline, which should be on the public svn server within 24 hours.  We now 
compile this:

 register unsigned long esp __asm__("esp");
  
  int foo(void)
  {
    esp += 42;
    return esp;
}

to:

_foo:

        movl %esp, %eax
        addl $42, %eax
        movl %eax, %esp

        movl %esp, %eax
        ret



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list