diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-06-10 22:44:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-06-10 22:44:06 -0400 |
commit | 942d495dcd12801187076d12e5f7409e8a8aa661 (patch) | |
tree | c3853d4ab5409811752c1af6b0292d4e78165f9b /tools/test-gcc.sh | |
parent | c0693941fdb5118164a8161316fdf8e9ebb499d2 (diff) |
Add support for gcc v3.x compilers.
Suppress __attribute__((externally_visible)) when no -fwhole-program
Add switch hack for compilers without -fno-jump-tables
Define memcpy() function (for compilers without -minline-all-stringops).
Define call16_simpint as a macro (a param needs to be inlined).
Make sure s3_resume is only defined in 32bit mode.
Diffstat (limited to 'tools/test-gcc.sh')
-rwxr-xr-x | tools/test-gcc.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/test-gcc.sh b/tools/test-gcc.sh index c354ec3..55f359f 100755 --- a/tools/test-gcc.sh +++ b/tools/test-gcc.sh @@ -11,10 +11,9 @@ TMPFILE3o=out/tmp_testcompile3.o # Test for "-fwhole-program" $CC -fwhole-program -S -o /dev/null -xc /dev/null > /dev/null 2>&1 if [ $? -ne 0 ]; then - echo "This version of gcc does not support -fwhole-program." > /dev/fd/2 - echo "Please upgrade to gcc v4.1 or later" > /dev/fd/2 - echo -1 - exit 1 + echo " Working around no -fwhole-program" > /dev/fd/2 + echo 1 + exit 0 fi # Test if "visible" variables are marked global. |