Make gcsec-1.c unsupported for AIX.
authorTom Rix <trix@redhat.com>
Thu, 31 Jan 2002 01:44:14 +0000 (01:44 +0000)
committerTom Rix <trix@gcc.gnu.org>
Thu, 31 Jan 2002 01:44:14 +0000 (01:44 +0000)
From-SVN: r49357

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/special/ecos.exp

index 27934b67f9b3be1b9b2d6d968b027a4f0d746bdb..6a00f4831ef0f7201a7a65a738976cfcae9c5f5a 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-31  Tom Rix  <trix@redhat.com>
+
+       * gcc.dg/special/ecos.exp: Make gcsec-1.c unsupported for AIX.
+
 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * gcc.dg/noncompile/20020130-1.c: New test.
index cc632fc334c8818668db57828e8e751ad3ed29c9..56995cd2a13bad6e699e709e9360ca2fbb359304 100644 (file)
@@ -145,7 +145,11 @@ if { [ check_weak_available ] == 1 } {
 
 set ld_output [ remote_exec host "[ find_ld ]" "--help" ]
 
-if { [ string first "--gc-sections" $ld_output ] >= 0 } {
+# AIX gld supports garbage collection. But AIX gcc does not support 
+# -ffunction-sections or -fdata-sections.
+if { [ string first "--gc-sections" $ld_output ] >= 0 
+     && ! [istarget rs6000-*-aix*]
+     && ! [istarget powerpc*-*-aix*] } {
 
     dg-init
     if [isnative] {