summaryrefslogtreecommitdiff
path: root/hints/vos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/vos.sh')
-rw-r--r--hints/vos.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/hints/vos.sh b/hints/vos.sh
index 9860a6faac..62510ee0d1 100644
--- a/hints/vos.sh
+++ b/hints/vos.sh
@@ -108,9 +108,12 @@ echo "Testing whether bug gnu_g++-220 is fixed in your compiler..."
# Try compiling the test case.
if $cc -o t001 -O $ccflags $ldflags ../hints/t001.c; then
gccbug=`$run ./t001`
+ if [ "X$gccversion" = "X" ]; then
+ # Done too late in Configure if hinted
+ gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ fi
case "$gccbug" in
- *fails*) gccversion=`$cc --version`
- cat >&4 <<EOF
+ *fails*) cat >&4 <<EOF
This C compiler ($gccversion) is known to have optimizer
problems when compiling pp_pack.c. The Stratus bug number
for this problem is gnu_g++-220.