[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 8 10:20:01 PDT 2004


Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.25 -> 1.26

---
Log message:

Disable strict alias analysis in the backend c compiler, as the code we
generate is not TBAA safe.


---
Diffs of the changes:  (+1 -0)

Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.25 llvm/tools/gccld/GenerateCode.cpp:1.26
--- llvm/tools/gccld/GenerateCode.cpp:1.25	Thu Apr  8 10:18:03 2004
+++ llvm/tools/gccld/GenerateCode.cpp	Thu Apr  8 10:18:59 2004
@@ -234,6 +234,7 @@
   //  and linker because we don't know where to put the _start symbol.
   //  GCC mysteriously knows how to do it.
   cmd.push_back(gcc.c_str());
+  cmd.push_back("-fno-strict-aliasing");
   cmd.push_back("-O3");
   cmd.push_back("-o");
   cmd.push_back(OutputFilename.c_str());





More information about the llvm-commits mailing list