6.16 gcc omit-frame pointer

Randy McMurchy randy at linuxfromscratch.org
Wed Dec 1 13:54:32 PST 2010


Bruce Dubbs wrote these words on 12/01/10 14:50 CST:
> In Chapter 5, we are not doing a full bootstrap, so we add 
> -fomit-frame-pointer so it will produce the same codes as if it was a 
> full bootstrap.
> 
> In Chapter 6, we do the same thing.  I think, but I'm not sure, that 
> -fomit-frame-pointer is the default for x86_64.  If this is correct, 
> perhaps we can tweak the text a little to clarify.

I seem to recall reading in the GCC mailing lists that -fomit-frame-pointer
is the default on all builds now. I don't recall what version this was
started. It would be easy enough to find out. Anyone with a x86 could
start a GCC build and look at the first few times in the log where
something is compiled and see if the flag is in the line. If you see it
once, you will know it is now default.

-- 
Randy

rmlscsi: [bogomips 1003.28] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
15:51:00 up 29 days, 22:45, 1 user, load average: 0.24, 0.25, 0.26



More information about the lfs-dev mailing list