[LLVMbugs] [Bug 16] [lowerinvoke] The -lowerinvoke pass does not insert calls to setjmp/longjmp

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Feb 8 11:57:49 PST 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=16

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.2



------- Additional Comments From sabre at nondot.org  2004-02-08 13:57 -------
This bug is now fixed.  Patch here:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040202/011324.html

Testcase here:
test/Regression/CodeGen/X86/2004-02-08-UnwindSupport.llx

Because SJLJ exceptions are potentially expensive, they default to being off. 
If the program throws an exception, it will terminate, with this message:
"Exception handler needed, but not enabled.  Recompile program with
-enable-correct-eh-support.".

In the testsuite, a program should set 'REQUIRES_EH_SUPPORT = 1' in the makefile
if it needs exception handling support (for longjmp or throw).

I finally got around to doing this, because having all of the EH singlesource
tests fail on LLC/JIT masks real problems.  :(  Both the X86 and Sparc code
generators should now support invoke/unwind property.  Now all Regression/C++/EH
tests pass, for example.

-Chris




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