Make gcsec-1.c unsupported for AIX.
authortrix <trix@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2002 01:44:14 +0000 (01:44 +0000)
committertrix <trix@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2002 01:44:14 +0000 (01:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49357 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 27934b6..6a00f48 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 cc632fc..56995cd 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] {