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: "iains at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Nov 2018 11:27:22 +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 #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Uroš Bizjak from comment #7)
> (In reply to Iain Sandoe from comment #6)
> > for sysV5 psABI targets, the call site requirement is 64 for m32 and 126/256
> > for m64.
> sysV5 requires 128bit alignment at the call site, but on linux no runtime
> mechanism enforces this requirement. So, if it is possible to prove that the
> called function doesn't need 128bit alignment, we can misalign the caller to
> word size without consequences. From the trail of this PR, I suspect this is
> not the case on Darwin.
Correct;
Darwin's dynamic loader enforces the alignment requirement.