This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/60926] Compiler doesn't properly align stack pointer
- From: "gidici61 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Apr 2014 16:26:10 +0000
- Subject: [Bug target/60926] Compiler doesn't properly align stack pointer
- Auto-submitted: auto-generated
- References: <bug-60926-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60926
--- Comment #8 from gidici61 at gmail dot com ---
(In reply to H.J. Lu from comment #7)
> Since GCC finds out that g2 only needs 8 byte stack alignment,
> it only needs to align stack to 8 byte when calling g2.
Thank you. So this should be an exception? System V ABI x86, par. 3.2.2, page
16, says: "The end of the input argument area shall be aligned on a 16 (32, if
is
passed on stack) byte boundary. In other words, the value (%rsp + 8) is always
a multiple of 16 (32) when control is transferred to the function entry point".