public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Giuliano Belinassi <giulianob@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/giulianob/heads/pfe_backport_dirty)] Backport Align __patchable_function_entries to POINTER_SIZE [PR93194]
Date: Mon, 25 Oct 2021 15:02:09 +0000 (GMT)	[thread overview]
Message-ID: <20211025150209.336DA385843F@sourceware.org> (raw)

https://gcc.gnu.org/g:72733518162ec56ad9dfce2b44c758cec2de9fc8

commit 72733518162ec56ad9dfce2b44c758cec2de9fc8
Author: Fangrui Song <maskray@google.com>
Date:   Tue Jan 7 20:46:26 2020 -0800

    Backport Align __patchable_function_entries to POINTER_SIZE [PR93194]
    
    gcc/ChangeLog
    2021-10-07  Giuliano Belinassi  <gbelinassi@suse.de>
            Backport from mainline
    
            2020-01-20  Fangrui Song  <maskray@google.com>
    
            PR middle-end/93194
            * targhooks.c (default_print_patchable_function_entry): Align to
            POINTER_SIZE.

Diff:
---
 gcc/targhooks.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index be0c557f1a2..aaf536acf17 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -1644,6 +1644,7 @@ default_print_patchable_function_entry (FILE *file,
 
       switch_to_section (get_section ("__patchable_function_entries",
 				      SECTION_WRITE | SECTION_RELRO, NULL));
+      assemble_align (POINTER_SIZE);
       fputs (asm_op, file);
       assemble_name_raw (file, buf);
       fputc ('\n', file);


                 reply	other threads:[~2021-10-25 15:02 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=20211025150209.336DA385843F@sourceware.org \
    --to=giulianob@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).