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
This commit is contained in:
Ulrich Weigand 2008-07-02 15:45:48 +00:00 committed by Ulrich Weigand
parent 3ea394f23d
commit 5211d96275
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* lib/compat.exp (compat-execute): Add -ffunction-sections
and -Wl,--auto-overlay when building for spu-*-elf*.
2008-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.dg/nrv3.c (S): Increase size of padding for SPU.

View File

@ -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