public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Volker Armin Hemmann <volker.armin.hemmann@tu-clausthal.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  CFLAGS changes
Date: Thu, 21 Feb 2008 17:12:12 +0100	[thread overview]
Message-ID: <200802211712.12695.volker.armin.hemmann@tu-clausthal.de> (raw)
In-Reply-To: <47BD8BE1.6040408@konstantinhansen.de>

On Donnerstag, 21. Februar 2008, KH wrote:
> James wrote:
> > Hello,
> >
> >
> > Current  CFLAGS="-O2 -march=i686 -pipe"
> >
> >
> > I want to add "-fomit-frame-pointer" to my
> > CFLAGS on an existing system that has been running
> > for months.
> >
> >
> > Is this safe or do I have to rebuild everything with
> > somelike "emerge -e" ?
> >
> >
> > Should it be avoided completely?
> >
> > James
>
> Hi,
>
> I am not too good in English but I alway understood that:
> |-fomit-frame-pointer|
>
>     Don't keep the frame pointer in a register for functions that don't
>     need one. This avoids the instructions to save, set up and restore
>     frame pointers; it also makes an extra register available in many
>     functions. *It also makes debugging impossible on some machines.*
>
>     On some machines, such as the VAX, this flag has no effect, because
>     the standard calling sequence automatically handles the frame
>     pointer and nothing is saved by pretending it doesn't exist. The
>     machine-description macro |FRAME_POINTER_REQUIRED| controls whether
>     a target machine supports this flag. See Register Usage
>    
> <http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gccint/Registers.html#Registers>.
>
>
>     Enabled at levels -O, -O2, -O3, -Os.
>
>
> means, that fomit-frame-pointer is already active when -o ... is choose.
>
> see
> http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Optimize-Options.html#Optimize-
>Options

man gcc:
-O also turns on -fomit-frame-pointer on machines where doing so does not 
interfere with debugging.

It doesn't hurt to set it anyway. If it is enabled by OX, it will be ignored. 
-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-02-21 16:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21 13:53 [gentoo-user] CFLAGS changes James
2008-02-21 14:09 ` Dale
2008-02-21 14:43   ` Dale
2008-02-21 14:16 ` Michal 'vorner' Vaner
2008-02-21 14:34 ` KH
2008-02-21 16:12   ` Volker Armin Hemmann [this message]
2008-02-21 14:34 ` Uwe Thiem
2008-02-21 14:41 ` justin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802211712.12695.volker.armin.hemmann@tu-clausthal.de \
    --to=volker.armin.hemmann@tu-clausthal.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox