[Bug c/60926] Compiler doesn't properly align stack pointer

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 22 21:11:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60926

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>	pushq	%rbp
>	movq	%rsp, %rbp
>	subq	$8, %rsp         ; why 8? 

Because the pushq increments rsp by 8 so adding another 8 will cause it to be
full addition of 16.


More information about the Gcc-bugs mailing list