[llvm-commits] [SignlessTypes] CVS: llvm/lib/Target/CBackend/Writer.cpp

Reid Spencer reid at x10sys.com
Sun Oct 22 02:56:04 PDT 2006



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.272.2.4 -> 1.272.2.5
---
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.272.2.4 llvm/lib/Target/CBackend/Writer.cpp:1.272.2.5
--- llvm/lib/Target/CBackend/Writer.cpp:1.272.2.4	Sun Oct 22 03:59:00 2006
+++ llvm/lib/Target/CBackend/Writer.cpp	Sun Oct 22 04:55:50 2006
@@ -1079,8 +1079,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__";






More information about the llvm-commits mailing list