public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-9370] d: Align methods to MINIMUM_METHOD_BOUNDARY. Date: Fri, 10 Dec 2021 01:14:34 +0000 (GMT) [thread overview] Message-ID: <20211210011434.B3EAC3858404@sourceware.org> (raw) https://gcc.gnu.org/g:64ccdadd1773976cd3c27c297966439ffeae391f commit r11-9370-g64ccdadd1773976cd3c27c297966439ffeae391f Author: Iain Buclaw <ibuclaw@gdcproject.org> Date: Fri Dec 10 01:30:19 2021 +0100 d: Align methods to MINIMUM_METHOD_BOUNDARY. Aligns all D defined methods to MINIMUM_METHOD_BOUNDARY, improving interoperability with C++ methods. gcc/d/ChangeLog: * decl.cc (get_symbol_decl): Align methods to MINIMUM_METHOD_BOUNDARY. (cherry picked from commit 213b7d9cf76d73f7b716a6f9119971cb65bd85e2) Diff: --- gcc/d/decl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc index 02e6b4cfdf8..a30549ce8e0 100644 --- a/gcc/d/decl.cc +++ b/gcc/d/decl.cc @@ -1213,6 +1213,9 @@ get_symbol_decl (Declaration *decl) DECL_VINDEX (decl->csym) = size_int (fd->vtblIndex); DECL_VIRTUAL_P (decl->csym) = 1; } + + /* Align method to the minimum boundary for target. */ + SET_DECL_ALIGN (decl->csym, MINIMUM_METHOD_BOUNDARY); } else if (fd->isMain () || fd->isCMain ()) {
reply other threads:[~2021-12-10 1:14 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=20211210011434.B3EAC3858404@sourceware.org \ --to=ibuclaw@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: linkBe 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).