This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Flag to undo --enable-frame-pointer builds on i386


On 2017-08-16 12:09 +0200, Florian Weimer wrote:
> On 08/16/2017 12:01 PM, 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.  A single
> > -fomit-frame-pointer should work.
> 
> How so?  I need to compile with -pg.

With Google I found an ancient patch:
<https://gcc.gnu.org/ml/gcc-patches/2008-10/msg00499.html>

And CC Andi to see if we can merge it.

> Thanks,
> Florian
> 
> 
-- 
Xi Ruoyao <ryxi@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]