This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch][committed] Fix check_effective_target_vect_multiple_sizes and check_effective_target_vect64
- From: Ira Rosen <ira dot rosen at linaro dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: michael at chamberlain dot net dot au, Patch Tracking <patches at linaro dot org>
- Date: Tue, 4 Oct 2011 10:22:54 +0300
- Subject: [patch][committed] Fix check_effective_target_vect_multiple_sizes and check_effective_target_vect64
Hi,
Michael pointed out this problem in
check_effective_target_vect_multiple_sizes and
check_effective_target_vect64 that I added lately.
Tested on powerpc64-suse-linux.
Committed as obvious.
Thanks,
Ira
testsuite/ChangeLog:
* lib/target-supports.exp (check_effective_target_vect_multiple_sizes):
Make et_vect_multiple_sizes_saved global.
(check_effective_target_vect64): Make et_vect64_saved global.
Index: testsuite/lib/target-supports.exp
===================================================================
--- testsuite/lib/target-supports.exp (revision 179489)
+++ testsuite/lib/target-supports.exp (working copy)
@@ -3375,7 +3375,7 @@ foreach N {2 3 4 8} {
# Return 1 if the target supports multiple vector sizes
proc check_effective_target_vect_multiple_sizes { } {
- global et_vect_multiple_sizes
+ global et_vect_multiple_sizes_saved
if [info exists et_vect_multiple_sizes_saved] {
verbose "check_effective_target_vect_multiple_sizes: using
cached result" 2
@@ -3393,7 +3393,7 @@ proc check_effective_target_vect_multiple_sizes {
# Return 1 if the target supports vectors of 64 bits.
proc check_effective_target_vect64 { } {
- global et_vect64
+ global et_vect64_saved
if [info exists et_vect64_saved] {
verbose "check_effective_target_vect64: using cached result" 2