aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-06-26 18:55:50 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-06-26 18:55:50 -0400
commita68287f4f05b828e668f9993140cdc7b5fbf420a (patch)
tree6765950167fe6553fe220f792f0a26fa75a3c197
parent5c3f5dde217f382b02350973a38f50941904473d (diff)
downloadseabios-a68287f4f05b828e668f9993140cdc7b5fbf420a.tar.gz
Enhance gcc test for visible variables with -fwhole-program.
Add 'extern' decl before variable test - some older compilers wont mark a variable visible if an extern decl precedes it.
-rwxr-xr-xtools/test-gcc.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/test-gcc.sh b/tools/test-gcc.sh
index 5f55f37d..738cf640 100755
--- a/tools/test-gcc.sh
+++ b/tools/test-gcc.sh
@@ -19,6 +19,7 @@ fi
# Test if "visible" variables and functions are marked global.
cat - > $TMPFILE1 <<EOF
void __attribute__((externally_visible)) t1() { }
+extern unsigned char v1;
unsigned char v1 __attribute__((section(".data16.foo.19"))) __attribute__((externally_visible));
EOF
$CC -Os -c -fwhole-program $TMPFILE1 -o $TMPFILE1o > /dev/null 2>&1