[LLVMbugs] [Bug 1612] New: Problems with exception handling when using LLVM JIT

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 16 07:34:03 PDT 2007


           Summary: Problems with exception handling when using LLVM JIT
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: basu at research.ge.com
                CC: llvmbugs at cs.uiuc.edu

First off - nice work!  LLVM is brilliant.  

I do seem to be having an issue though.  On some linux platforms, my
application (which is trying to use the LLVM JIT compiler/runtime) runs fine. 
On others it does not.  The symptom is that exceptions (which are used in the
app) are not caught properly - on those systems for which LLVM works, I noticed
that in config.log, the use of "-fno-exceptions -fno-rtti" is disabled (gcc
3.4.6), while on the system on which it fails, config.log indicates that
exceptions and rtti are disabled (gcc 4.1.2).  What's strange is that the
exceptions fail immediately, even before any LLVM related code is invoked - so
I thought it was OK to mix libs with -fno-exceptions and apps that use
exceptions.    I am currently trying to build LLVM on the gcc4 box using
CPPFLAGS=-DREQUIRES_EH, but am not entirely sure this is correct.  The fact
that everything works as advertised with gcc3 and not gcc4 is why I am filing
this as a bug...   It would also be helpful to have an option for configure to
enable/disable exceptions (with "enable" as the default).

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