[LLVMbugs] [Bug 9407] New: inline asm is not updated on renames.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 5 08:32:09 PST 2011


           Summary: inline asm is not updated on renames.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Linker
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Chatting with Jan Hubicka he pointed out an interesting case we don't get
right. I have not seen this in real code yet, but it would be interesting to
fix it for completeness. 

$ cat c1.c
#include <stdio.h>
static void __attribute__((used)) foo(void) {
asm(".text\n .globl _zed\n _zed: jmp _foo");
void bar(void);
void zed(void);
int main(void) {
$ cat c2.c
#include <stdio.h>
static void __attribute__((used)) foo(void) {
asm(".text\n .globl _bar\n _bar: jmp _foo");
$ clang -emit-llvm -c -Os c1.c
$ clang -emit-llvm -c -Os c2.c
$ clang c1.o c2. -o t
$ ./t 

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list