Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264744

Summary: amd64 handbook should say that fomit-frame-pointer is always enabled when -O{1,2,3,s} is set
Product: [OLD] Docs on www.gentoo.org Reporter: Pacho Ramos <pacho>
Component: Installation HandbookAssignee: Docs Team <docs-team>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap5
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2009-04-03 11:13:50 UTC
As stated in:
http://www.gentoo.org/doc/en/gcc-optimization.xml#doc_chap2

"This is a very common flag designed to reduce generated code size. It is turned on at all levels of -O (except -O0) on architectures where doing so does not interfere with debugging (such as x86-64), but you may need to activate it yourself by adding it to your flags. Though the GNU gcc manual does not specify all architectures it is turned on by using -O, you will need to explicitly activate it on x86. However, using this flag will make debugging hard to impossible. "

This should be noted on amd64 handbook for preventing users to add this redundant flag

Thanks a lot

Reproducible: Always
Comment 1 nm (RETIRED) gentoo-dev 2009-04-04 03:01:29 UTC
Redundant flags are not a problem.

We also don't tell users to set the flag in the AMD64 example, either. It's my experience that unless specifically told to add something, first time users don't generally deviate from the sample configs in the handbook. More advanced users do, and since they're advanced, they tend to already know about how CFLAGS work. I'd prefer to leave it as-is.
Comment 2 Pacho Ramos gentoo-dev 2009-04-07 09:00:19 UTC
I don't fully agree but ok, I can leave with it :-)

Thanks for fast reply