summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-04 05:02:27 +0000
committerChris Lattner <sabre@nondot.org>2006-02-04 05:02:27 +0000
commit2d2e2e3c0e4250037af69092de3695f6218aa33d (patch)
tree0c60a6cdd43708a7a3373e998cb65a306bdbbdd8
parent57a004abfe84b9e793a88bd8ca5945f552e21db6 (diff)
downloadbcm5719-llvm-2d2e2e3c0e4250037af69092de3695f6218aa33d.tar.gz
bcm5719-llvm-2d2e2e3c0e4250037af69092de3695f6218aa33d.zip
Let bugpoint work on sparc with v9 instructions enabled.
llvm-svn: 25958
-rw-r--r--llvm/lib/Support/ToolRunner.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/ToolRunner.cpp b/llvm/lib/Support/ToolRunner.cpp
index a9b68deecab..a967e3e8377 100644
--- a/llvm/lib/Support/ToolRunner.cpp
+++ b/llvm/lib/Support/ToolRunner.cpp
@@ -400,6 +400,9 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
#if defined (HAVE_LINK_R)
GCCArgs.push_back("-Wl,-R."); // Search this dir for .so files
#endif
+#ifdef __sparc__
+ GCCArgs.push_back("-mcpu=v9");
+#endif
GCCArgs.push_back(0); // NULL terminator
std::cout << "<gcc>" << std::flush;
@@ -458,6 +461,9 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
#if defined(__ia64__) || defined(__alpha__)
"-fPIC", // IA64 requires shared objs to contain PIC
#endif
+#ifdef __sparc__
+ "-mcpu=v9",
+#endif
"-o", OutputFile.c_str(), // Output to the right filename...
"-O2", // Optimize the program a bit...
0
OpenPOWER on IntegriCloud