On Fri, 2020-01-03 at 12:23 +0100, Martin Liška wrote: > Hi. > > I'm not fully sure about the change, but -momit-leaf-frame-pointer > probably should not globally omit frame pointers? > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin > > gcc/ChangeLog: > > 2020-01-03 Martin Liska <mli...@suse.cz> > > PR tree-optimization/92860 > * config/i386/i386-options.c (ix86_option_override_internal): > Do not enable -fomit-frame-pointer with -momit-leaf-frame-pointer > as it will globally omit pointers (like in ira.c). But when TARGET_OMIT_LEAF_FRAME_POINTER is on, then for a non-leaf function ix86_frame_pointer_required returns true.
So AFAICT we don't globally omit frame-pointers when this option is turned on. jeff