From: Tom Rix Date: Thu, 31 Jan 2002 01:44:14 +0000 (+0000) Subject: Make gcsec-1.c unsupported for AIX. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8785985197496735946fb77807746420bc262da9;p=gcc.git Make gcsec-1.c unsupported for AIX. From-SVN: r49357 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 27934b67f9b..6a00f4831ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-01-31 Tom Rix + + * gcc.dg/special/ecos.exp: Make gcsec-1.c unsupported for AIX. + 2002-01-31 Joseph S. Myers * gcc.dg/noncompile/20020130-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/special/ecos.exp b/gcc/testsuite/gcc.dg/special/ecos.exp index cc632fc334c..56995cd2a13 100644 --- a/gcc/testsuite/gcc.dg/special/ecos.exp +++ b/gcc/testsuite/gcc.dg/special/ecos.exp @@ -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] {