Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog flag-o-matic.eclass
Date: Wed, 28 Dec 2011 05:48:37
Message-Id: 20111228054828.3F3B52004B@flycatcher.gentoo.org
1 dirtyepic 11/12/28 05:48:28
2
3 Modified: ChangeLog flag-o-matic.eclass
4 Log:
5 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.
6
7 Revision Changes Path
8 1.61 eclass/ChangeLog
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.61&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.61&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.60&r2=1.61
13
14 Index: ChangeLog
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
17 retrieving revision 1.60
18 retrieving revision 1.61
19 diff -u -r1.60 -r1.61
20 --- ChangeLog 27 Dec 2011 22:40:50 -0000 1.60
21 +++ ChangeLog 28 Dec 2011 05:48:28 -0000 1.61
22 @@ -1,6 +1,11 @@
23 # ChangeLog for eclass directory
24 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.60 2011/12/27 22:40:50 neurogeek Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.61 2011/12/28 05:48:28 dirtyepic Exp $
27 +
28 + 28 Dec 2011; Ryan Hill <dirtyepic@g.o> flag-o-matic.eclass:
29 + Remove UNSTABLE_FLAGS. Keyword status should not determine what flags are
30 + used. Move -Os to allowed flags as it's been stable since 4.0ish and drop -O0
31 + because it breaks things a lot.
32
33 27 Dec 2011; Jesus Rivero <neurogeek@g.o> subversion.eclass:
34 Handle UUID mismatch by deleting working copy and checking out it again.
35
36
37
38 1.162 eclass/flag-o-matic.eclass
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.162&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.162&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.161&r2=1.162
43
44 Index: flag-o-matic.eclass
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v
47 retrieving revision 1.161
48 retrieving revision 1.162
49 diff -u -r1.161 -r1.162
50 --- flag-o-matic.eclass 15 Dec 2011 05:23:15 -0000 1.161
51 +++ flag-o-matic.eclass 28 Dec 2011 05:48:28 -0000 1.162
52 @@ -1,6 +1,6 @@
53 # Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.161 2011/12/15 05:23:15 vapier Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.162 2011/12/28 05:48:28 dirtyepic Exp $
57
58 # @ECLASS: flag-o-matic.eclass
59 # @MAINTAINER:
60 @@ -34,7 +34,7 @@
61 setup-allowed-flags() {
62 if [[ -z ${ALLOWED_FLAGS} ]] ; then
63 export ALLOWED_FLAGS="-pipe"
64 - export ALLOWED_FLAGS="${ALLOWED_FLAGS} -O -O0 -O1 -O2 -mcpu -march -mtune"
65 + export ALLOWED_FLAGS="${ALLOWED_FLAGS} -O -O1 -O2 -Os -mcpu -march -mtune"
66 export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fstack-protector -fstack-protector-all"
67 export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fbounds-checking -fno-strict-overflow"
68 export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-PIE -fno-pie -fno-unit-at-a-time"
69 @@ -64,9 +64,6 @@
70 ALLOWED_FLAGS="${ALLOWED_FLAGS} -mno-fsgsbase -mno-rdrnd -mno-f16c \
71 -mno-bmi -mno-tbm"
72
73 - # {C,CXX,F,FC}FLAGS that we are think is ok, but needs testing
74 - # NOTE: currently -Os have issues with gcc3 and K6* arch's
75 - export UNSTABLE_FLAGS="-Os -O3 -freorder-blocks"
76 return 0
77 }
78
79 @@ -338,11 +335,6 @@
80 local NEW_FFLAGS=""
81 local NEW_FCFLAGS=""
82
83 - # Allow unstable C[XX]FLAGS if we are using unstable profile ...
84 - if has "~$(tc-arch)" ${ACCEPT_KEYWORDS} ; then
85 - ALLOWED_FLAGS="${ALLOWED_FLAGS} ${UNSTABLE_FLAGS}"
86 - fi
87 -
88 set -f # disable pathname expansion
89
90 for x in ${CFLAGS}; do