]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lib/target-supports.exp (check_vmx_hw_available): Add -maltivec flag for AIX.
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 15 Oct 2007 15:00:49 +0000 (15:00 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 15 Oct 2007 15:00:49 +0000 (11:00 -0400)
lib/target-supports.exp (check_vmx_hw_available): Add -maltivec
flag for AIX.
(check_effective_target_powerpc_altivec_ok): Only skip before AIX 5.3.

From-SVN: r129349

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index ff81461c97edf47bbc456f68f27afd31830993e2..f74a14a61d8e1ccc824b2485b301eedc18f739a5 100644 (file)
@@ -1,3 +1,9 @@
+2007-10-15  David Edelsohn  <edelsohn@gnu.org>
+
+       lib/target-supports.exp (check_vmx_hw_available): Add -maltivec
+       flag for AIX.
+       (check_effective_target_powerpc_altivec_ok): Only skip before AIX 5.3.
+
 2007-10-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/33055
index 7ec6581278fae2063fe72d7b40010989dcdc87ec..ac53b65506676ffadbc3faad9de766a3977b328b 100644 (file)
@@ -943,7 +943,8 @@ proc check_vmx_hw_available { } {
 
        # Most targets don't require special flags for this test case, but
        # Darwin does.
-       if [istarget *-*-darwin*] {
+       if { [istarget *-*-darwin*] 
+            || [istarget *-*-aix*] } {
          set opts "additional_flags=-maltivec"
        } else {
          set opts ""
@@ -1620,8 +1621,10 @@ proc check_effective_target_powerpc_fprs { } {
 proc check_effective_target_powerpc_altivec_ok { } {
     if { [istarget powerpc*-*-*]
         || [istarget rs6000-*-*] } {
-       # AltiVec is not supported on Aix.
-       if { [istarget powerpc*-*-aix*] } {
+       # AltiVec is not supported on AIX before 5.3.
+       if { [istarget powerpc*-*-aix4*]
+            || [istarget powerpc*-*-aix5.1*] 
+            || [istarget powerpc*-*-aix5.2*] } {
            return 0
        }
        return [check_no_compiler_messages powerpc_altivec_ok object {