[llvm-commits] CVS: llvm/utils/findmisopt

Reid Spencer reid at x10sys.com
Fri Dec 8 10:58:53 PST 2006



Changes in directory llvm/utils:

findmisopt updated: 1.9 -> 1.10
---
Log message:

Add the -ldl library option.


---
Diffs of the changes:  (+3 -2)

 findmisopt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/utils/findmisopt
diff -u llvm/utils/findmisopt:1.9 llvm/utils/findmisopt:1.10
--- llvm/utils/findmisopt:1.9	Fri Nov 24 22:07:06 2006
+++ llvm/utils/findmisopt	Fri Dec  8 12:58:38 2006
@@ -61,6 +61,7 @@
 opts="$outdir/${name}.opt.s"
 optprog="$outdir/${name}.opt"
 optout="$outdir/${name}.opt.out"
+ldflags="-lstdc++ -lm -ldl -lc"
 
 echo "Test Name: $name"
 echo "Unoptimized program: $prog"
@@ -81,7 +82,7 @@
 
 # Generate the non-optimized program
 llc "$bcfile" -o "$s" -f || exit 1
-gcc "$s" -o "$prog" -lstdc++ -lc -lm || exit 1
+gcc "$s" -o "$prog" $ldflags || exit 1
 
 # Define the list of optimizations to run. This comprises the same set of 
 # optimizations that gccas and gccld run, in the same order.
@@ -96,7 +97,7 @@
   opt $switches_to_use "$bcfile" -o "$optbc" -f || exit
   llvm-dis "$optbc" -o "$optll" -f || exit
   llc "$optbc" -o "$opts" -f || exit
-  gcc "$opts" -o "$optprog" -lstdc++ -lc -lm || exit
+  gcc "$opts" -o "$optprog" $ldflags || exit
   "$prog" $args > "$out" 2>&1
   ex1=$?
   "$optprog" $args > "$optout" 2>&1






More information about the llvm-commits mailing list