Gentoo Archives: gentoo-commits

From: "Ryan Hill (rhill)" <rhill@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog toolchain.eclass
Date: Sun, 01 Jun 2014 23:00:51
Message-Id: 20140601230046.2AB862004E@flycatcher.gentoo.org
1 rhill 14/06/01 23:00:46
2
3 Modified: ChangeLog toolchain.eclass
4 Log:
5 If we keep the flag list sorted by version there's no need for this function
6 to be recursive. This shaves a couple seconds off the worst-case runtime.
7
8 Revision Changes Path
9 1.1280 eclass/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1280&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1280&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1279&r2=1.1280
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
18 retrieving revision 1.1279
19 retrieving revision 1.1280
20 diff -u -r1.1279 -r1.1280
21 --- ChangeLog 1 Jun 2014 22:07:59 -0000 1.1279
22 +++ ChangeLog 1 Jun 2014 23:00:45 -0000 1.1280
23 @@ -1,6 +1,10 @@
24 # ChangeLog for eclass directory
25 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1279 2014/06/01 22:07:59 mgorny Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1280 2014/06/01 23:00:45 rhill Exp $
28 +
29 + 01 Jun 2014; Ryan Hill <rhill@g.o> toolchain.eclass:
30 + If we keep the flag list sorted by version there's no need for this function
31 + to be recursive. This shaves a couple seconds off the worst-case runtime.
32
33 01 Jun 2014; Michał Górny <mgorny@g.o> git-r3.eclass,
34 +tests/git-r3:subrepos.sh:
35
36
37
38 1.632 eclass/toolchain.eclass
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.632&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.632&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.631&r2=1.632
43
44 Index: toolchain.eclass
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
47 retrieving revision 1.631
48 retrieving revision 1.632
49 diff -u -r1.631 -r1.632
50 --- toolchain.eclass 1 Jun 2014 17:29:42 -0000 1.631
51 +++ toolchain.eclass 1 Jun 2014 23:00:45 -0000 1.632
52 @@ -1,6 +1,6 @@
53 # Copyright 1999-2014 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.631 2014/06/01 17:29:42 vapier Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.632 2014/06/01 23:00:45 rhill Exp $
57
58 # Maintainer: Toolchain Ninjas <toolchain@g.o>
59
60 @@ -1233,8 +1233,8 @@
61 [[ ${mytune} == x86-64 ]] && filter-flags '-mtune=*'
62 [[ ${bver} < 3.4 ]] && filter-flags '-mtune=*'
63
64 + # "added" "arch" "replacement"
65 local archlist=(
66 - # "added" "arch" "replacement"
67 4.9 bdver4 bdver3
68 4.9 bonnell atom
69 4.9 broadwell core-avx2
70 @@ -1271,10 +1271,10 @@
71 3.4 pentium4m pentium4
72 )
73
74 - myarch=$(get-flag march)
75 - mytune=$(get-flag mtune)
76 -
77 for ((i = 0; i < ${#archlist[@]}; i += 3)) ; do
78 + myarch=$(get-flag march)
79 + mytune=$(get-flag mtune)
80 +
81 ver=${archlist[i]}
82 arch=${archlist[i + 1]}
83 rep=${archlist[i + 2]}
84 @@ -1285,15 +1285,14 @@
85 einfo "Replacing ${myarch} (added in gcc ${ver}) with ${rep}..."
86 [[ ${myarch} == ${arch} ]] && replace-cpu-flags ${myarch} ${rep}
87 [[ ${mytune} == ${arch} ]] && replace-cpu-flags ${mytune} ${rep}
88 - downgrade_arch_flags ${1:-${GCC_BRANCH_VER}}
89 - break
90 + continue
91 else
92 break
93 fi
94 done
95
96 + # we only check -mno* here since -m* get removed by strip-flags later on
97 local isalist=(
98 - # we only check -mno* here since -m* get removed by strip-flags later on
99 4.9 -mno-sha
100 4.9 -mno-avx512pf
101 4.9 -mno-avx512f