Bugzilla – Bug 101
[setjmp/longjmp] Linking C programs which use setjmp/longjmp sometimes fail with references to the C++ runtime library!
Last modified: 2003-11-08 18:31:29
You need to log in before you can comment on or make changes to this bug.
This bug was due to the assert macro expanding into function calls which could throw on some platforms, pulling in code to check exception specifications in the implementation of the C sjlj runtime.
Here's the fix, which includes a more verbose description of the problem: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031103/009222.html -Chris
FWIW, I'm still getting link failures with SetjmpLongjmp/SimpleCTest, for example, on Mac OS X.
Ah, sorry. Here's a complete fix: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031103/009243.html -Chris