Allow bugpoint+PPC codegen to use fsqrt
authorChris Lattner <sabre@nondot.org>
Mon, 29 Aug 2005 13:14:24 +0000 (13:14 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Aug 2005 13:14:24 +0000 (13:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23128 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/ToolRunner.cpp
tools/bugpoint/ToolRunner.cpp

index f516986f133e35f2053f2d0745c89f223bbfe91a..6480c23cd8e9011bc0de4b8527a1be241c55d281 100644 (file)
@@ -385,6 +385,9 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
     GCCArgs.push_back("-fno-strict-aliasing");
   } else {
     GCCArgs.push_back("assembler");
+#ifdef __APPLE__
+    GCCArgs.push_back("-force_cpusubtype_ALL");
+#endif
   }
   GCCArgs.push_back(ProgramFile.c_str());  // Specify the input filename...
   GCCArgs.push_back("-o");
index f516986f133e35f2053f2d0745c89f223bbfe91a..6480c23cd8e9011bc0de4b8527a1be241c55d281 100644 (file)
@@ -385,6 +385,9 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
     GCCArgs.push_back("-fno-strict-aliasing");
   } else {
     GCCArgs.push_back("assembler");
+#ifdef __APPLE__
+    GCCArgs.push_back("-force_cpusubtype_ALL");
+#endif
   }
   GCCArgs.push_back(ProgramFile.c_str());  // Specify the input filename...
   GCCArgs.push_back("-o");