[LLVMbugs] [Bug 1398] NEW: wrong code (bad esp update) with -enable-llvm on x86

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon May 7 09:02:00 PDT 2007


           Summary: wrong code (bad esp update) with -enable-llvm on x86
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr

I've been seeing mysterious segfaults when compiling using
-enable-llvm, even though no exceptions are raised.  It turns
out to be due to a wrong stack pointer update:

$ llc ol.bc -o no_eh
$ llc ol.bc -enable-eh -o eh 
$ diff no_eh eh
<       addl $12, %esp
>       addl $16, %esp

If I change the $16 to $12 in the eh .s, then
the segfault goes away and all is well.

------- 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