From 95b32587d0f6917c2b4b174acd2fc0a87dc54be7 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 21 Dec 2012 16:21:53 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d3419761c2d..61cfaabccfd 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 7124eba235d..a3828cbbec6 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 { -- 2.30.2