Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.273 -> 1.274 --- Log message: Don't generate a prototype for _setjmp. At least on Linux, this function has a different prototype than the one #included from <setjmp.h>. This patch fixes siod and a number of other test cases on Linux that were failing the CBE because of this _setjmp issue. --- Diffs of the changes: (+2 -2) Writer.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.273 llvm/lib/Target/CBackend/Writer.cpp:1.274 --- llvm/lib/Target/CBackend/Writer.cpp:1.273 Fri Oct 20 02:07:24 2006 +++ llvm/lib/Target/CBackend/Writer.cpp Sun Oct 22 04:58:21 2006 @@ -1075,8 +1075,8 @@ for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) { // Don't print declarations for intrinsic functions. - if (!I->getIntrinsicID() && - I->getName() != "setjmp" && I->getName() != "longjmp") { + if (!I->getIntrinsicID() && I->getName() != "setjmp" && + I->getName() != "longjmp" && I->getName() != "_setjmp") { printFunctionSignature(I, true); if (I->hasWeakLinkage() || I->hasLinkOnceLinkage()) Out << " __ATTRIBUTE_WEAK__"; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits