aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-07-02 15:45:48 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2008-07-02 15:45:48 +0000
commit5211d96275021c367f53c167c32647b51141cff4 (patch)
tree67e157fd8c8a31a7161b5f1ca05b5ac89e2257da /gcc
parent3ea394f23d8fa451a069e263c6b424cb59f16d66 (diff)
downloadgcc-5211d96275021c367f53c167c32647b51141cff4.zip
gcc-5211d96275021c367f53c167c32647b51141cff4.tar.gz
gcc-5211d96275021c367f53c167c32647b51141cff4.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/compat.exp9
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index aa4b115..88751792 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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.
diff --git a/gcc/testsuite/lib/compat.exp b/gcc/testsuite/lib/compat.exp
index 474af62..84538a6 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