Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186891 - gcc-optimization.xml -Ox fallback
Summary: gcc-optimization.xml -Ox fallback
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: nm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-28 12:50 UTC by Carsten Lohrke (RETIRED)
Modified: 2007-07-29 06:58 UTC (History)
1 user (show)

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 Carsten Lohrke (RETIRED) gentoo-dev 2007-07-28 12:50:34 UTC
> As a fallback option, try setting your CFLAGS and CXXFLAGS to a lower optimization level, such as -O1 or -Os and recompile the package.

Please scrap -Os. Just have a look in how many ebuilds -Os is filtered or -O2 is mandatory. -Os is definitely worse than -O2 without providing any benefit, edge cases aside.

A better advice for error reporting and checking for possible gcc optimization problems would probably be -O0 -g2 -ggdb.


> -fomit-frame-pointer

Please add the note that on x86 backtraces are completely useless with this flag enabled.
Comment 1 nm (RETIRED) gentoo-dev 2007-07-28 17:58:39 UTC
Next time don't CC me as I'm already on the docs-team alias.

I'll see about the rest of your requests.
Comment 2 nm (RETIRED) gentoo-dev 2007-07-29 06:58:42 UTC
Fixed in CVS.