Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32882 - [patch] fallback to -O2 when strip-flags filters out -O3 and -Os
Summary: [patch] fallback to -O2 when strip-flags filters out -O3 and -Os
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-06 08:52 UTC by Gregorio Guidi (RETIRED)
Modified: 2003-11-07 10:42 UTC (History)
0 users

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


Attachments
flag-o-matic.eclass.diff (diff,523 bytes, patch)
2003-11-06 08:54 UTC, Gregorio Guidi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gregorio Guidi (RETIRED) gentoo-dev 2003-11-06 08:52:17 UTC
When strip-flags (from flag-o-matic.eclass) is invoked in a non ~arch system,
it removes optimization flags as -Os and -O3. Since -O2 is a safe flag, if an optimization flag was present in CFLAGS and no one survived the stripping, i think it is reasonable to reintroduce -O2.

The following patch to flag-o-matic.eclass does that.
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2003-11-06 08:54:16 UTC
Created attachment 20340 [details, diff]
flag-o-matic.eclass.diff

patch for /usr/portage/eclass/flag-o-matic.eclass
(consider also modifying /usr/lib/portage/bin/extra_functions.sh)
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-07 10:42:57 UTC
Done, thanks.