Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2002 11:41:50 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Darren Pilgrim <dmp@pantherdragon.org>
Cc:        Terry Lambert <tlambert2@mindspring.com>, Dmitry Morozovsky <marck@rinet.ru>, hackers@freebsd.org
Subject:   Re: -fomit-frame-pointer for the world build
Message-ID:  <20020804094150.GA96739@falcon.midgard.homeip.net>
In-Reply-To: <3D4C8464.A2F4775A@pantherdragon.org>
References:  <20020802212841.R58905-100000@woozle.rinet.ru> <3D4AC526.4CD399B3@mindspring.com> <3D4C8464.A2F4775A@pantherdragon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 03, 2002 at 06:33:24PM -0700, Darren Pilgrim wrote:
> Terry Lambert wrote:
> > Dmitry Morozovsky wrote:
> > > What are the drawbacks of building FreeBSD with -fomit-frame-pointer?
> > 
> > The frame pointer is used for debugging, specifically for the
> > stack traceback function to know arguments.  Removing it means
> > losing some debugging functionality.  Next time try "info gcc":
> 
> If you don't have any need for debugging your software, is there any
> use for frame pointers?  Is this something that can safely be used for
> both CFLAGS and COPTFLAGS?

I would say be careful.  I used to use -fomit-frame-pointer but I
decided to stop.  For one thing I didn't really notice any speedup.
More importantly I ran one port that did not compile correctly with
-fomit-frame-pointer.

I don't quite remember which port but I think it was Mozilla, or
possibly some other program using moderately complex C++.

Anyway, with -fomit-frame-pointer the build consistently failed at
exactly the same place.  Without -fomit-frame-pointer it built just
fine.  Now this might well be a bug in that port, or it might be that
some feature of C++ (exception handling would be my first guess) uses
the frame pointer.  
This was some time ago so the problem, whatever it was, might well be
fixed by now, but just bear this in mind if you decide to use
-fomit-frame-pointer



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020804094150.GA96739>