Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264744 - amd64 handbook should say that fomit-frame-pointer is always enabled when -O{1,2,3,s} is set
Summary: amd64 handbook should say that fomit-frame-pointer is always enabled when -O{...
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 11:13 UTC by Pacho Ramos
Modified: 2009-04-07 09:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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