[Bug target/68369] Unnecessary copying esp to ebp with regparm={1,2,3} on x86 at -Os
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 16 10:08:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68369
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target| |i?86-*-*
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-11-16
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I believe on i?86 with -Os we have the frame pointer enabled by default because
usually that gives smaller code (for argument stack slot accesses). Try
-Os -fomit-frame-pointer.
This is a missed-optimization (when no frame is actually needed).
More information about the Gcc-bugs
mailing list