Fix failed self tests under -Ofast and -O5. It appears to be a SunCC compiler bug

pull/239/head
Jeffrey Walton 2016-07-31 04:18:01 -04:00
parent 8dffadf2e3
commit 3ffb1f3565
1 changed files with 6 additions and 1 deletions

View File

@ -133,7 +133,6 @@ if [[ ((-z "$CXX") || ("$CXX" == "gcc")) ]]; then
if [[ "$IS_DARWIN" -ne "0" ]]; then
CXX=c++
elif [[ "$IS_SOLARIS" -ne "0" ]]; then
# SunCC 12.5 is mostly broken
if [[ (-e "/opt/developerstudio12.5/bin/CC") ]]; then
CXX=/opt/developerstudio12.5/bin/CC
elif [[ (-e "/opt/solarisstudio12.4/bin/CC") ]]; then
@ -194,6 +193,12 @@ else
MAKE=make
fi
# Fixup, bad code generation
if [[ ("$SUNCC_121_OR_ABOVE" -ne "0" ]]; then
HAVE_O5=0
HAVE_OFAST=0
fi
if [[ (-z "$TMP") ]]; then
if [[ (-d "/tmp") ]]; then
TMP=/tmp