From patchwork Tue Oct 4 07:22:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Rosen X-Patchwork-Id: 4506 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C522823EF5 for ; Tue, 4 Oct 2011 07:22:57 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id B2DE2A184A5 for ; Tue, 4 Oct 2011 07:22:57 +0000 (UTC) Received: by eyb6 with SMTP id 6so199055eyb.11 for ; Tue, 04 Oct 2011 00:22:57 -0700 (PDT) Received: by 10.223.94.134 with SMTP id z6mr1307164fam.8.1317712977459; Tue, 04 Oct 2011 00:22:57 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.23.170 with SMTP id n10cs41943laf; Tue, 4 Oct 2011 00:22:57 -0700 (PDT) Received: by 10.101.85.4 with SMTP id n4mr690393anl.76.1317712975656; Tue, 04 Oct 2011 00:22:55 -0700 (PDT) Received: from mail-gx0-f178.google.com (mail-gx0-f178.google.com [209.85.161.178]) by mx.google.com with ESMTPS id p6si2520218ani.196.2011.10.04.00.22.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Oct 2011 00:22:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.161.178 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) client-ip=209.85.161.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.161.178 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) smtp.mail=ira.rosen@linaro.org Received: by ggnl1 with SMTP id l1so61870ggn.37 for ; Tue, 04 Oct 2011 00:22:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.179.73 with SMTP id g49mr4595508yhm.41.1317712974942; Tue, 04 Oct 2011 00:22:54 -0700 (PDT) Received: by 10.147.99.14 with HTTP; Tue, 4 Oct 2011 00:22:54 -0700 (PDT) Date: Tue, 4 Oct 2011 10:22:54 +0300 Message-ID: Subject: [patch][committed] Fix check_effective_target_vect_multiple_sizes and check_effective_target_vect64 From: Ira Rosen To: gcc-patches@gcc.gnu.org Cc: michael@chamberlain.net.au, Patch Tracking 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. 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 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