no-strict-aliasing redux
authorChris Lattner <sabre@nondot.org>
Mon, 18 Aug 2003 22:32:48 +0000 (22:32 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 18 Aug 2003 22:32:48 +0000 (22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7965 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ExecutionDriver.cpp

index a9803f29e42658ccd5da09656ab02ed53746d241..a89aaec4d3cd4d7b41a748bea0ca146e65a2bc51 100644 (file)
@@ -174,7 +174,6 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
   } 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...
@@ -217,6 +216,7 @@ int GCC::MakeSharedObject(const std::string &InputFile,
   const char* GCCArgs[] = {
     GCCPath.c_str(),
     "-x", (fileType == AsmFile) ? "assembler" : "c",
+    "-fno-strict-aliasing",
     InputFile.c_str(),           // Specify the input filename...
 #if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
     "-G",                        // Compile a shared library, `-G' for Sparc