Fix failed self tests under -Ofast and -O5. It appears to be a SunCC compiler bug
parent
8dffadf2e3
commit
3ffb1f3565
|
|
@ -133,7 +133,6 @@ if [[ ((-z "$CXX") || ("$CXX" == "gcc")) ]]; then
|
||||||
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
||||||
CXX=c++
|
CXX=c++
|
||||||
elif [[ "$IS_SOLARIS" -ne "0" ]]; then
|
elif [[ "$IS_SOLARIS" -ne "0" ]]; then
|
||||||
# SunCC 12.5 is mostly broken
|
|
||||||
if [[ (-e "/opt/developerstudio12.5/bin/CC") ]]; then
|
if [[ (-e "/opt/developerstudio12.5/bin/CC") ]]; then
|
||||||
CXX=/opt/developerstudio12.5/bin/CC
|
CXX=/opt/developerstudio12.5/bin/CC
|
||||||
elif [[ (-e "/opt/solarisstudio12.4/bin/CC") ]]; then
|
elif [[ (-e "/opt/solarisstudio12.4/bin/CC") ]]; then
|
||||||
|
|
@ -194,6 +193,12 @@ else
|
||||||
MAKE=make
|
MAKE=make
|
||||||
fi
|
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 [[ (-z "$TMP") ]]; then
|
||||||
if [[ (-d "/tmp") ]]; then
|
if [[ (-d "/tmp") ]]; then
|
||||||
TMP=/tmp
|
TMP=/tmp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue