[LLVMbugs] [Bug 7867] New: indirectbr code gen generates an undefined local symbol

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 10 14:52:50 PDT 2010


           Summary: indirectbr code gen generates an undefined local
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: wendling at apple.com
                CC: llvmbugs at cs.uiuc.edu

$ llc -o t.s t.ll -relocation-model=pic -disable-fp-elim
$ gcc t.s
t.s:unknown:Undefined local symbol Ltmp4

The original code (it works at -O0 and -O1, but fails at -O2 and above):

long stack[100];
int main(int argc,char**argv,char **envp) {
  long *esp=stack;
  static void* jarray[]={ &&KeyCtrlKV };
 goto SetTermStruc;
goto *(*esp--);
 goto *(*esp--);

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