From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id A1D1B3858413; Tue, 21 Sep 2021 09:15:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1D1B3858413 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Matthew Malcomson To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] Fix caching name on cheri_capability_pure selector X-Act-Checkin: gcc X-Git-Author: Matthew Malcomson X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 79b82feb41e4e10c6d00dfb4a2bd74e72b937e17 X-Git-Newrev: 1fc5b16e1792f871bd694969f4b77b25c50970a9 Message-Id: <20210921091536.A1D1B3858413@sourceware.org> Date: Tue, 21 Sep 2021 09:15:36 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 09:15:36 -0000 https://gcc.gnu.org/g:1fc5b16e1792f871bd694969f4b77b25c50970a9 commit 1fc5b16e1792f871bd694969f4b77b25c50970a9 Author: Matthew Malcomson Date: Thu Sep 16 11:34:14 2021 +0100 Fix caching name on cheri_capability_pure selector The check_effective_target_cheri_capability_pure procedure uses check_no_compiler_messages as many others do. This procedure takes a cache variable name to record whether we are supporting this feature. The variable name that cheri_capability_pure used was aarch64_capability_any, which meant that if we'd found that any capability was available we would assume that pure capability was available. This was a particular problem in the morello.exp testsuite since some tests are designed specifically for PureCap while others can be run for Fake Cap too. Here we assign a cache variable specifically for if PureCap is available and use that in the relevant procedure. This fixes the testsuite for the new PureCap only tests recently added. Diff: --- gcc/testsuite/lib/target-supports.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index f438de2e323..be4f0e6db73 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3571,7 +3571,7 @@ proc check_effective_target_cheri_capability_pure { } { if { ![istarget aarch64*-*-*] } { return 0 } - return [check_no_compiler_messages aarch64_capability_any assembly { + return [check_no_compiler_messages cheri_capability_pure assembly { #if !defined (__CHERI_PURE_CAPABILITY__) #error foo #endif