Flag to undo --enable-frame-pointer builds on i386
Segher Boessenkool
segher@kernel.crashing.org
Thu Aug 17 15:05:00 GMT 2017
On Wed, Aug 16, 2017 at 06:01:17PM +0800, Xi Ruoyao wrote:
> On 2017-08-16 10:01 +0200, Florian Weimer wrote:
> > GCC for i386 can be configured with --enable-frame-pointer, which
> > changes the frame pointer from disabled to enabled by default.
> >
> > Is there a command flag to undo that, changing the default back to a
> > default of frame pointer omission?
> >
> > -fomit-frame-pointer is not that flag:
> >
> > gcc: error: -pg and -fomit-frame-pointer are incompatible
>
> Yes, you can't use -fomit-frame-pointer with -pg.
Which isn't actually true for most targets (those with PROFILE_BEFORE_PROLOGUE
at least), but this error is implemented in the specs file for everything.
Segher
More information about the Gcc-help
mailing list