From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1314) id CFC133858C74; Thu, 27 Jan 2022 10:33:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFC133858C74 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andrew Pinski To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6889] Fix aarch64/104201: branch-protection-attr.c fails after quoting difference X-Act-Checkin: gcc X-Git-Author: Andrew Pinski X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 82c8ff79d06cc7d389c72f94d4443c509cf85313 X-Git-Newrev: 2e4bf373f2ae97be3adc654054e7e8a982813766 Message-Id: <20220127103344.CFC133858C74@sourceware.org> Date: Thu, 27 Jan 2022 10:33:44 +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: Thu, 27 Jan 2022 10:33:44 -0000 https://gcc.gnu.org/g:2e4bf373f2ae97be3adc654054e7e8a982813766 commit r12-6889-g2e4bf373f2ae97be3adc654054e7e8a982813766 Author: Andrew Pinski Date: Thu Jan 27 10:28:28 2022 +0000 Fix aarch64/104201: branch-protection-attr.c fails after quoting difference After the quoting changes in r12-6521-g03a1a86b5ee40d4e240, branch-protection-attr.c fails due to expecting a different quoting type for "leaf". This patch changes the quoting from "" to '' as that is what is used now. Committed as obvious after a test of the testcase. gcc/testsuite/ChangeLog: PR target/104201 * gcc.target/aarch64/branch-protection-attr.c: Fix quoting for the expected error message on line 5 of leaf. Diff: --- gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c b/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c index 229ce1ca7be..1d6e55f3907 100644 --- a/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c +++ b/gcc/testsuite/gcc.target/aarch64/branch-protection-attr.c @@ -4,7 +4,7 @@ void __attribute__ ((target("branch-protection=leaf"))) foo1 () { } -/* { dg-error {invalid protection type \("leaf"\) in 'target\("branch-protection="\)' pragma or attribute} "" { target *-*-* } 5 } */ +/* { dg-error {invalid protection type \('leaf'\) in 'target\("branch-protection="\)' pragma or attribute} "" { target *-*-* } 5 } */ /* { dg-error {pragma or attribute 'target\("branch-protection=leaf"\)' is not valid} "" { target *-*-* } 5 } */ void __attribute__ ((target("branch-protection=none+pac-ret")))