[llvm-commits] CVS: llvm/tools/bugpoint/ExecutionDriver.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 18 17:33:00 PDT 2003


Changes in directory llvm/tools/bugpoint:

ExecutionDriver.cpp updated: 1.17 -> 1.18

---
Log message:

The CBE generates code which violates the TBAA rules of C, thus we must disable
optimizations based on these rules.  :(


---
Diffs of the changes:

Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.17 llvm/tools/bugpoint/ExecutionDriver.cpp:1.18
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.17	Thu Aug  7 16:19:30 2003
+++ llvm/tools/bugpoint/ExecutionDriver.cpp	Mon Aug 18 17:32:03 2003
@@ -168,7 +168,13 @@
   if (!SharedLib.empty()) // Specify the shared library to link in...
     GCCArgs.push_back(SharedLib.c_str());
   GCCArgs.push_back("-x");
-  GCCArgs.push_back((fileType == AsmFile) ? "assembler" : "c");
+  if (fileType == CFile) {
+    GCCArgs.push_back("c");
+    GCCArgs.push_back("-fno-strict-aliasing");
+  } else {
+    GCCArgs.push_back("assembler");
+  }
+
   GCCArgs.push_back(ProgramFile.c_str());  // Specify the input filename...
   GCCArgs.push_back("-o");
   GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file...





More information about the llvm-commits mailing list