From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id 284493857C58; Fri, 10 Dec 2021 16:48:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 284493857C58 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)] morello: Set LSB on label on longjmp builtin expansion X-Act-Checkin: gcc X-Git-Author: Stam Markianos-Wright X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: fce30daf2773f194347363b27f47e02d01c0c7ba X-Git-Newrev: e448e4ea47469b2f9696ede3648c264761ef6b1b Message-Id: <20211210164853.284493857C58@sourceware.org> Date: Fri, 10 Dec 2021 16:48:53 +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, 10 Dec 2021 16:48:53 -0000 https://gcc.gnu.org/g:e448e4ea47469b2f9696ede3648c264761ef6b1b commit e448e4ea47469b2f9696ede3648c264761ef6b1b Author: Stam Markianos-Wright Date: Wed Oct 20 14:35:20 2021 +0100 morello: Set LSB on label on longjmp builtin expansion Another mini-patch to fix a similar issue to that with the casesi pattern to do with the LSB not being set. In this case we can fix it in a neater way: using the target hook to adjust the memory address. Diff: --- gcc/builtins.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/builtins.c b/gcc/builtins.c index d7b0fcad423..181d34bf918 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -1166,6 +1166,7 @@ expand_builtin_longjmp (rtx buf_addr, rtx value) emit_clobber (gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (VOIDmode))); emit_clobber (gen_rtx_MEM (BLKmode, hard_frame_pointer_rtx)); + lab = targetm.adjust_label_expansion (lab); lab = copy_to_reg (lab); /* Restore the frame pointer and stack pointer. We must use a