public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Matthew Malcomson <matmal01@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/ARM/heads/morello)] morello: Set LSB on label on longjmp builtin expansion
Date: Fri, 10 Dec 2021 16:48:53 +0000 (GMT)	[thread overview]
Message-ID: <20211210164853.284493857C58@sourceware.org> (raw)

https://gcc.gnu.org/g:e448e4ea47469b2f9696ede3648c264761ef6b1b

commit e448e4ea47469b2f9696ede3648c264761ef6b1b
Author: Stam Markianos-Wright <stam.markianos-wright@arm.com>
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


                 reply	other threads:[~2021-12-10 16:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211210164853.284493857C58@sourceware.org \
    --to=matmal01@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).