summaryrefslogtreecommitdiffstats
path: root/llvm/utils/findmisopt
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-11 10:22:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-11 10:22:48 +0000
commit2e80be8251c32557b427880a3ead402795f072e2 (patch)
treee135ae0aea947eaa80fa27f9451d2f6f84240d5b /llvm/utils/findmisopt
parent66c502b54ac7d2512dfea05fdfb1d349ddeed979 (diff)
downloadbcm5719-llvm-2e80be8251c32557b427880a3ead402795f072e2.tar.gz
bcm5719-llvm-2e80be8251c32557b427880a3ead402795f072e2.zip
Add -lstdc++ to the link line for C++ programs.
llvm-svn: 31678
Diffstat (limited to 'llvm/utils/findmisopt')
-rwxr-xr-xllvm/utils/findmisopt4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/findmisopt b/llvm/utils/findmisopt
index dc564849457..2f5745b0ea4 100755
--- a/llvm/utils/findmisopt
+++ b/llvm/utils/findmisopt
@@ -60,7 +60,7 @@ llvm-dis "$bcfile" -o "$ll" -f || exit 1
# Generate the non-optimized program
llc "$bcfile" -o "$s" -f || exit 1
-gcc "$s" -o "$prog" || exit 1
+gcc "$s" -o "$prog" -lstdc++ -lc -lm || exit 1
# Define the list of optimizations to run
all_switches="-verify -lowersetjmp -funcresolve -raiseallocs -simplifycfg -mem2reg -globalopt -globaldce -ipconstprop -deadargelim -instcombine -simplifycfg -prune-eh -inline -simplify-libcalls -argpromotion -raise -tailduplicate -simplifycfg -scalarrepl -instcombine -predsimplify -condprop -tailcallelim -simplifycfg -reassociate -licm -loop-unswitch -instcombine -indvars -loop-unroll -instcombine -load-vn -gcse -sccp -instcombine -condprop -dse -dce -simplifycfg -deadtypeelim -constmerge"
@@ -71,7 +71,7 @@ function tryit {
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" || exit
+ gcc "$opts" -o "$optprog" -lstdc++ -lc -lm || exit
"$prog" $args > "$out"
ex1=$?
"$optprog" $args > "$optout"
OpenPOWER on IntegriCloud