OSDN Git Service

* lib/compat.exp (compat-execute): Add -ffunction-sections
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 15:45:48 +0000 (15:45 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 15:45:48 +0000 (15:45 +0000)
and -Wl,--auto-overlay when building for spu-*-elf*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137365 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/compat.exp

index aa4b115..8875179 100644 (file)
@@ -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.
 
index 474af62..84538a6 100644 (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