From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id B8C56383602B; Fri, 6 May 2022 14:44:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8C56383602B 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)] Make -fgimple override -ffake-hybrid X-Act-Checkin: gcc X-Git-Author: Richard Sandiford X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 36ef2e33c562b26beef4e39afb953c4646883c80 X-Git-Newrev: 9a6713bdc72a9db401f2742b9bc8a40b813df297 Message-Id: <20220506144430.B8C56383602B@sourceware.org> Date: Fri, 6 May 2022 14:44:30 +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: Fri, 06 May 2022 14:44:30 -0000 https://gcc.gnu.org/g:9a6713bdc72a9db401f2742b9bc8a40b813df297 commit 9a6713bdc72a9db401f2742b9bc8a40b813df297 Author: Richard Sandiford Date: Wed Apr 27 10:15:02 2022 +0100 Make -fgimple override -ffake-hybrid Morello gimple frontend testcases are likely to make deliberate choices about whether a pointer is a capability or not, and to make deliberate choices about whether to use __CAP_ADDR. Changing the types under the hood is likely to give invalid gimple and lead to an ICE. Diff: --- gcc/c/c-decl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 86805630ea2..e9b05efcd99 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -5950,6 +5950,11 @@ test_fake_hybrid (void) if (!flag_fake_hybrid || !targetm.capability_mode ().exists ()) return false; + /* Fiddling with gimple testcases is likely to generate justified + verify_gimple ICEs. */ + if (flag_gimple) + return false; + if (flag_fake_hybrid_init < flag_fake_hybrid) { int count = flag_fake_hybrid_init + fake_hybrid_counter++;