diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-06-26 18:55:50 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-06-26 18:55:50 -0400 |
commit | a68287f4f05b828e668f9993140cdc7b5fbf420a (patch) | |
tree | 6765950167fe6553fe220f792f0a26fa75a3c197 | |
parent | 5c3f5dde217f382b02350973a38f50941904473d (diff) | |
download | seabios-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-x | tools/test-gcc.sh | 1 |
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 |