summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-07 16:29:15 +0100
committerSam James <sam@gentoo.org>2023-05-07 16:59:18 +0100
commitc9a4e0ca0ab961af2ef6e73399a22774b15ac0bb (patch)
treea3fbda6183cd74797adad69321cf8e976786a3ce /eclass/flag-o-matic.eclass
parentnet-misc/curl: stable 8.0.1 for sparc, bug #905145 (diff)
downloadgentoo-c9a4e0ca0ab961af2ef6e73399a22774b15ac0bb.tar.gz
gentoo-c9a4e0ca0ab961af2ef6e73399a22774b15ac0bb.tar.bz2
gentoo-c9a4e0ca0ab961af2ef6e73399a22774b15ac0bb.zip
flag-o-matic.eclass: add -O3 to ALLOWED_FLAGS (strip-flags whitelist)
-O3 is perfectly safe in the absence of UB. And with UB, -O2 and friends can easily break with new compiler versions and such anyway. In addition, I'd say that -O/-O1 is probably as risky as -O3 nowadays, if not more, because if nothing else, you don't get a bunch of hardening. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 6bec3df30881..3dd39c54a531 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -47,7 +47,7 @@ setup-allowed-flags() {
# Note: shell globs and character lists are allowed
_setup-allowed-flags() {
ALLOWED_FLAGS=(
- -pipe -O '-O[12sg]' '-mcpu=*' '-march=*' '-mtune=*'
+ -pipe -O '-O[123sg]' '-mcpu=*' '-march=*' '-mtune=*'
# Hardening flags
'-fstack-protector*'