From: Ulrich Weigand Date: Wed, 2 Jul 2008 15:45:48 +0000 (+0000) Subject: compat.exp (compat-execute): Add -ffunction-sections and -Wl,--auto-overlay when... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5211d96275021c367f53c167c32647b51141cff4;p=gcc.git compat.exp (compat-execute): Add -ffunction-sections and -Wl,--auto-overlay when building for spu-*-elf*. * lib/compat.exp (compat-execute): Add -ffunction-sections and -Wl,--auto-overlay when building for spu-*-elf*. From-SVN: r137365 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aa4b1152161..88751792124 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-07-02 Ulrich Weigand + + * lib/compat.exp (compat-execute): Add -ffunction-sections + and -Wl,--auto-overlay when building for spu-*-elf*. + 2008-07-02 Ulrich Weigand * gcc.dg/nrv3.c (S): Increase size of padding for SPU. diff --git a/gcc/testsuite/lib/compat.exp b/gcc/testsuite/lib/compat.exp index 474af620d16..84538a6f8b4 100644 --- a/gcc/testsuite/lib/compat.exp +++ b/gcc/testsuite/lib/compat.exp @@ -275,6 +275,15 @@ proc compat-execute { src1 sid use_alt } { set extra_flags_3 [compat-get-options $src3] set compile_xfail_3 $compiler_conditional_xfail_data + # On the SPU, most of the compat test cases exceed local store size. + # Use automatic overlay support to make them fit. + if { [istarget spu-*-elf*] } { + set extra_flags_1 "$extra_flags_1 -Wl,--auto-overlay" + set extra_flags_1 "$extra_flags_1 -ffunction-sections" + set extra_flags_2 "$extra_flags_2 -ffunction-sections" + set extra_flags_3 "$extra_flags_3 -ffunction-sections" + } + # Define the names of the object files. regsub "sid" "sid_main_tst.o" $sid obj1 regsub "sid" "sid_x_tst.o" $sid obj2_tst