[llvm-commits] CVS: llvm/tools/bugpoint/CodeGeneratorBug.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 17 18:40:01 PDT 2003
Changes in directory llvm/tools/bugpoint:
CodeGeneratorBug.cpp updated: 1.16 -> 1.17
---
Log message:
Give correct command line for making a shared object
---
Diffs of the changes:
Index: llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff -u llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.16 llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.17
--- llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.16 Sun Aug 17 17:14:20 2003
+++ llvm/tools/bugpoint/CodeGeneratorBug.cpp Sun Aug 17 18:38:53 2003
@@ -255,7 +255,13 @@
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);
More information about the llvm-commits
mailing list