[Bug rtl-optimization/115998] Redundant stack pointer manipulation
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 19 06:10:45 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115998
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> ---
The call to l will push the return pointer on the stack (8bytes) and then the
sub 8 to the sp aligns the stack to 16 bytes to keep the stack aligned to 16
bytes as required by the abi.
The call to g will also push the address but that stack belongs to g rather
than to l at that point.
More information about the Gcc-bugs
mailing list