From aa1c614784ccc78b0bc2e655ab08aee4a37bee7c Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 22 Oct 2006 09:58:21 +0000 Subject: Don't generate a prototype for _setjmp. At least on Linux, this function has a different prototype than the one #included from . This patch fixes siod and a number of other test cases on Linux that were failing the CBE because of this _setjmp issue. llvm-svn: 31112 --- llvm/lib/Target/CBackend/Writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/CBackend/Writer.cpp') diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp index f31f92018b8..bc2f7bd5f1f 100644 --- a/llvm/lib/Target/CBackend/Writer.cpp +++ b/llvm/lib/Target/CBackend/Writer.cpp @@ -1075,8 +1075,8 @@ bool CWriter::doInitialization(Module &M) { 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__"; -- cgit v1.2.3