From ab233da2c9cef25eb2594fcb86f908c5319d038e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 30 Jun 2009 21:13:44 -0400 Subject: [PATCH] Add descriptions to the gcc tests in tools/test-gcc.sh. --- tools/test-gcc.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tools/test-gcc.sh b/tools/test-gcc.sh index 738cf64..e189f25 100755 --- a/tools/test-gcc.sh +++ b/tools/test-gcc.sh @@ -8,7 +8,8 @@ TMPFILE2=out/tmp_testcompile2.c TMPFILE2o=out/tmp_testcompile2.o TMPFILE3o=out/tmp_testcompile3.o -# Test for "-fwhole-program" +# Test for "-fwhole-program". Older versions of gcc (pre v4.1) don't +# support the whole-program optimization - detect that. $CC -fwhole-program -S -o /dev/null -xc /dev/null > /dev/null 2>&1 if [ $? -ne 0 ]; then echo " Working around no -fwhole-program" > /dev/fd/2 @@ -16,7 +17,11 @@ if [ $? -ne 0 ]; then exit 0 fi -# Test if "visible" variables and functions are marked global. +# Test if "visible" variables and functions are marked global. On +# OpenSuse 10.3 "visible" variables declared with "extern" first +# aren't marked as global in the resulting assembler. On Ubuntu 7.10 +# "visible" functions aren't marked as global in the resulting +# assembler. cat - > $TMPFILE1 < $TMPFILE1 <