Commit 5211d962 by Ulrich Weigand Committed by Ulrich Weigand

compat.exp (compat-execute): Add -ffunction-sections and -Wl,--auto-overlay when…

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
parent 3ea394f2
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.
* g++.dg/opt/temp1.C (struct T): Likewise.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment