mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 18:51:24 +08:00
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:
parent
3ea394f23d
commit
5211d96275
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user