From: David Edelsohn Date: Fri, 21 Dec 2012 16:21:53 +0000 (+0000) Subject: target-supports.exp (add_options_for_tls): Add -pthread for AIX as well. X-Git-Tag: releases/gcc-4.8.0~1268 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95b32587d0f6917c2b4b174acd2fc0a87dc54be7;p=thirdparty%2Fgcc.git target-supports.exp (add_options_for_tls): Add -pthread for AIX as well. * lib/target-supports.exp (add_options_for_tls): Add -pthread for AIX as well. (check_effective_target_powerpc_vsx_ok): Only test VSX on AIX 7.1 and above. From-SVN: r194670 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d3419761c2d1..61cfaabccfdd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -3,6 +3,11 @@ * gcc.dg/pthread-init-2.c (dg-options): Define _XOPEN_SOURCE=500 on AIX. + * lib/target-supports.exp (add_options_for_tls): Add -pthread for + AIX as well. + (check_effective_target_powerpc_vsx_ok): Only test VSX on AIX 7.1 + and above. + 2012-12-21 Paul Thomas PR fortran/55763 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7124eba235d2..a3828cbbec6e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -578,10 +578,10 @@ proc check_effective_target_pcc_bitfield_type_matters { } { proc add_options_for_tls { flags } { # On Solaris 9, __tls_get_addr/___tls_get_addr only lives in - # libthread, so always pass -pthread for native TLS. + # libthread, so always pass -pthread for native TLS. Same for AIX. # Need to duplicate native TLS check from # check_effective_target_tls_native to avoid recursion. - if { [istarget *-*-solaris2.9*] && + if { ([istarget *-*-solaris2.9*] || [istarget powerpc-ibm-aix*]) && [check_no_messages_and_pattern tls_native "!emutls" assembly { __thread int i; int f (void) { return i; } @@ -2646,10 +2646,10 @@ proc check_effective_target_powerpc_vsx_ok { } { if { ([istarget powerpc*-*-*] && ![istarget powerpc-*-linux*paired*]) || [istarget rs6000-*-*] } { - # AltiVec is not supported on AIX before 5.3. + # VSX is not supported on AIX before 7.1. if { [istarget powerpc*-*-aix4*] - || [istarget powerpc*-*-aix5.1*] - || [istarget powerpc*-*-aix5.2*] } { + || [istarget powerpc*-*-aix5*] + || [istarget powerpc*-*-aix6*] } { return 0 } return [check_no_compiler_messages powerpc_vsx_ok object {