Remove UNSTABLE_FLAGS. Keyword status should not determine what flags are used....
authorRyan Hill <rhill@gentoo.org>
Wed, 28 Dec 2011 05:48:28 +0000 (05:48 +0000)
committerRyan Hill <rhill@gentoo.org>
Wed, 28 Dec 2011 05:48:28 +0000 (05:48 +0000)
eclass/ChangeLog
eclass/flag-o-matic.eclass

index f2e4971effec0541219b4b333c829d691588cae6..b3f39d5eb73e5b20089daad406f914b1a5aadb31 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.60 2011/12/27 22:40:50 neurogeek Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.61 2011/12/28 05:48:28 dirtyepic Exp $
+
+  28 Dec 2011; Ryan Hill <dirtyepic@gentoo.org> flag-o-matic.eclass:
+  Remove UNSTABLE_FLAGS. Keyword status should not determine what flags are
+  used. Move -Os to allowed flags as it's been stable since 4.0ish and drop -O0
+  because it breaks things a lot.
 
   27 Dec 2011; Jesus Rivero <neurogeek@gentoo.org> subversion.eclass:
   Handle UUID mismatch by deleting working copy and checking out it again.
index 0c7c4700d490c8a950f2870513dc0e0faf64c799..d0ca217f11f10de5414bc65b0f8457c4ca274d52 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.161 2011/12/15 05:23:15 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.162 2011/12/28 05:48:28 dirtyepic Exp $
 
 # @ECLASS: flag-o-matic.eclass
 # @MAINTAINER:
@@ -34,7 +34,7 @@ inherit eutils toolchain-funcs multilib
 setup-allowed-flags() {
        if [[ -z ${ALLOWED_FLAGS} ]] ; then
                export ALLOWED_FLAGS="-pipe"
-               export ALLOWED_FLAGS="${ALLOWED_FLAGS} -O -O0 -O1 -O2 -mcpu -march -mtune"
+               export ALLOWED_FLAGS="${ALLOWED_FLAGS} -O -O1 -O2 -Os -mcpu -march -mtune"
                export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fstack-protector -fstack-protector-all"
                export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fbounds-checking -fno-strict-overflow"
                export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-PIE -fno-pie -fno-unit-at-a-time"
@@ -64,9 +64,6 @@ setup-allowed-flags() {
        ALLOWED_FLAGS="${ALLOWED_FLAGS} -mno-fsgsbase -mno-rdrnd -mno-f16c \
                -mno-bmi -mno-tbm"
 
-       # {C,CXX,F,FC}FLAGS that we are think is ok, but needs testing
-       # NOTE:  currently -Os have issues with gcc3 and K6* arch's
-       export UNSTABLE_FLAGS="-Os -O3 -freorder-blocks"
        return 0
 }
 
@@ -338,11 +335,6 @@ strip-flags() {
        local NEW_FFLAGS=""
        local NEW_FCFLAGS=""
 
-       # Allow unstable C[XX]FLAGS if we are using unstable profile ...
-       if has "~$(tc-arch)" ${ACCEPT_KEYWORDS} ; then
-               ALLOWED_FLAGS="${ALLOWED_FLAGS} ${UNSTABLE_FLAGS}"
-       fi
-
        set -f  # disable pathname expansion
 
        for x in ${CFLAGS}; do