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 r10-10329] d: Align methods to MINIMUM_METHOD_BOUNDARY. Date: Fri, 10 Dec 2021 01:15:15 +0000 (GMT) [thread overview] Message-ID: <20211210011515.C4E983858C3A@sourceware.org> (raw) https://gcc.gnu.org/g:d0db09bf98909a6abcab4c6eecc38d06e4253cd8 commit r10-10329-gd0db09bf98909a6abcab4c6eecc38d06e4253cd8 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 1ccd983af9c..94f941f65a3 100644 --- a/gcc/d/decl.cc +++ b/gcc/d/decl.cc @@ -1253,6 +1253,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:15 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=20211210011515.C4E983858C3A@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).