diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-04 05:02:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-04 05:02:27 +0000 |
commit | fdcc71eaa804f3a2604485def9c3757488e8dcdb (patch) | |
tree | ac9a03de809132301d10f6340abc13de704b6690 /lib/Support/ToolRunner.cpp | |
parent | 003cecbc9d210fa23f0ba68ac288748d20780cc7 (diff) |
Let bugpoint work on sparc with v9 instructions enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ToolRunner.cpp')
-rw-r--r-- | lib/Support/ToolRunner.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index a9b68deeca..a967e3e837 100644 --- a/lib/Support/ToolRunner.cpp +++ b/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 |