This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/78444] Wrong prologue stack alignment for implicit dtor on x86_64-darwin*
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Nov 2018 11:01:21 +0000
- Subject: [Bug target/78444] Wrong prologue stack alignment for implicit dtor on x86_64-darwin*
- Auto-submitted: auto-generated
- References: <bug-78444-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78444
--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Uroš Bizjak from comment #4)
> So, what we want to achieve here?
AFAICS, the compiler figures out that the called function requires only 64bit
alignment and lowers the alignment requirements at the call site. So, although
the callee is not leaf, it gets "misaligned" to 64 bit.
If there are additional requirements for the alignment at call site (c.f.
Description), then the patch in Comment #2 is correct.