target-supports.exp (check_effective_target_vect_long): Fix for powerpc64-*-*.
authorJanis Johnson <janis187@us.ibm.com>
Tue, 30 Nov 2004 21:19:49 +0000 (21:19 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Tue, 30 Nov 2004 21:19:49 +0000 (21:19 +0000)
* lib/target-supports.exp (check_effective_target_vect_long):
Fix for powerpc64-*-*.

From-SVN: r91540

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

index 3fa07f4..f642e1e 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-30  Janis Johnson  <janis187@us.ibm.com>
+
+       * lib/target-supports.exp (check_effective_target_vect_long):
+       Fix for powerpc64-*-*.
+
 2004-11-30  Loren James Rittle  <ljrittle@acm.org>
 
         * g++.old-deja/g++.eh/badalloc1.C (arena_size): Bump up to 262144
index 4ea6e3f..ed1394c 100644 (file)
@@ -458,25 +458,20 @@ proc check_effective_target_vect_int { } {
 
 # Return 1 if the target supports hardware vectors of long, 0 otherwise.
 #
-# This won't change for different subtargets so cache the result.
+# This can change for different subtargets so do not cache the result.
 
 proc check_effective_target_vect_long { } {
-    global et_vect_long_saved
-
-    if [info exists et_vect_long_saved] {
-       verbose "check_effective_target_vect_long: using cached result" 2
+    if { [istarget i?86-*-*]
+        || ([istarget powerpc*-*-*] && [check_effective_target_ilp32])
+        || [istarget x86_64-*-*]
+        || ([istarget sparc*-*-*] && [check_effective_target_ilp32]) } {
+       set answer 1
     } else {
-       set et_vect_long_saved 0
-       if { [istarget i?86-*-*]
-             || [istarget powerpc*-*-*]
-             || [istarget x86_64-*-*]
-             || ([istarget sparc*-*-*] && [check_effective_target_ilp32]) } {
-          set et_vect_long_saved 1
-       }
+       set answer 0
     }
 
-    verbose "check_effective_target_vect_long: returning $et_vect_long_saved" 2
-    return $et_vect_long_saved
+    verbose "check_effective_target_vect_long: returning $answer" 2
+    return $answer
 }
 
 # Return 1 if the target supports hardware vectors of float, 0 otherwise.