summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-17 23:38:53 +0000
committerChris Lattner <sabre@nondot.org>2003-08-17 23:38:53 +0000
commit7a993b7aad985423ccf1f6cf8ef03569b56a428c (patch)
treef063aa0c05dc74d144f816e657c899e31da372e9 /llvm/tools/bugpoint/CodeGeneratorBug.cpp
parent4b422520ca8ae983d026a83ff984f2e972eec1f9 (diff)
downloadbcm5719-llvm-7a993b7aad985423ccf1f6cf8ef03569b56a428c.tar.gz
bcm5719-llvm-7a993b7aad985423ccf1f6cf8ef03569b56a428c.zip
Give correct command line for making a shared object
llvm-svn: 7929
Diffstat (limited to 'llvm/tools/bugpoint/CodeGeneratorBug.cpp')
-rw-r--r--llvm/tools/bugpoint/CodeGeneratorBug.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/CodeGeneratorBug.cpp b/llvm/tools/bugpoint/CodeGeneratorBug.cpp
index 72ea91a4e27..603bf77a70d 100644
--- a/llvm/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/llvm/tools/bugpoint/CodeGeneratorBug.cpp
@@ -255,7 +255,13 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
std::cout << "\n";
std::cout << "The shared object was created with:\n dis -c "
<< SafeModuleBC << " -o temporary.c\n"
- << " gcc -shared temporary.c -o " << SharedObject << "\n";
+ << " gcc -xc temporary.c -O2 -o " << SharedObject
+#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
+ << "-G" // Compile a shared library, `-G' for Sparc
+#else
+ << "-shared" // `-shared' for Linux/X86, maybe others
+#endif
+ << "\n";
} else {
removeFile(TestModuleBC);
removeFile(SafeModuleBC);
OpenPOWER on IntegriCloud