Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/boost-build/, dev-util/boost-build/files/
Date: Sat, 02 May 2020 14:26:54
Message-Id: 1588429586.15a79dbcb67977407710434ae1afa43be49220f5.soap@gentoo
1 commit: 15a79dbcb67977407710434ae1afa43be49220f5
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 2 14:26:26 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat May 2 14:26:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15a79dbc
7
8 dev-util/boost-build: Bump to 1.73.0
9
10 Closes: https://bugs.gentoo.org/719928
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 dev-util/boost-build/Manifest | 1 +
15 dev-util/boost-build/boost-build-1.73.0.ebuild | 74 ++++++
16 ...ost-build-1.73.0-add-none-feature-options.patch | 22 ++
17 ...oost-build-1.73.0-no-implicit-march-flags.patch | 269 +++++++++++++++++++++
18 4 files changed, 366 insertions(+)
19
20 diff --git a/dev-util/boost-build/Manifest b/dev-util/boost-build/Manifest
21 index 34653ed7e2e..464a9d9c3eb 100644
22 --- a/dev-util/boost-build/Manifest
23 +++ b/dev-util/boost-build/Manifest
24 @@ -1 +1,2 @@
25 DIST boost_1_72_0.tar.bz2 106907358 BLAKE2B ab270a0e3cb24da687d86785e2d2e6d7731b4dbc07bd839eadb642dfa5a428ad584acb1f3529661a8de9a986008ff3427491041059ea2b742348d02e00761cd8 SHA512 63bbd1743e7c904b2e69fdc2eafd1c2a8a30fd70d960dcd366059d0100f000cb605d56cbd9397bb18421631f1c9552a772c434d0f0caddbe56302273f51fd1f6
26 +DIST boost_1_73_0.tar.bz2 109247910 BLAKE2B 5995ff6ca21f45988b187b94bf743795cca97531baa8355f488be0987b9426289dd85d6ce25b7eb03ccd690109f05ba56252a95bca50505ad9cd66f4e0e234e8 SHA512 86c296511c0766145097625a62bf099c3d155284d250ad6e528e788bc90b2945838498dfe473c6c6c78d1694b6fba8e19f7dee0d064a043841e6231603fff668
27
28 diff --git a/dev-util/boost-build/boost-build-1.73.0.ebuild b/dev-util/boost-build/boost-build-1.73.0.ebuild
29 new file mode 100644
30 index 00000000000..bb838e5bd69
31 --- /dev/null
32 +++ b/dev-util/boost-build/boost-build-1.73.0.ebuild
33 @@ -0,0 +1,74 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit flag-o-matic prefix toolchain-funcs
40 +
41 +MY_PV="$(ver_rs 1- _)"
42 +
43 +DESCRIPTION="A system for large project software construction, simple to use and powerful"
44 +HOMEPAGE="https://boostorg.github.io/build/"
45 +SRC_URI="https://dl.bintray.com/boostorg/release/${PV}/source/boost_${MY_PV}.tar.bz2"
46 +
47 +LICENSE="Boost-1.0"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
50 +IUSE="examples"
51 +RESTRICT="test"
52 +
53 +S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${PN}-1.71.0-disable_python_rpath.patch
57 + "${FILESDIR}"/${PN}-1.71.0-darwin-gentoo-toolchain.patch
58 + "${FILESDIR}"/${PN}-1.73.0-add-none-feature-options.patch
59 + "${FILESDIR}"/${PN}-1.71.0-respect-c_ld-flags.patch
60 + "${FILESDIR}"/${PN}-1.73.0-no-implicit-march-flags.patch
61 +)
62 +
63 +src_unpack() {
64 + tar xojf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build || die "unpacking tar failed"
65 +}
66 +
67 +src_prepare() {
68 + default
69 +
70 + pushd .. >/dev/null || die
71 + eapply "${FILESDIR}"/${PN}-1.71.0-fix-test.patch
72 + popd >/dev/null || die
73 +}
74 +
75 +src_configure() {
76 + hprefixify engine/Jambase
77 + tc-export CXX
78 +}
79 +
80 +src_compile() {
81 + cd engine || die
82 + ./build.sh cxx -d+2 --without-python || die "building bjam failed"
83 +}
84 +
85 +src_test() {
86 + # Forget tests, bjam is a lost cause
87 + :
88 +}
89 +
90 +src_install() {
91 + dobin engine/{bjam,b2}
92 +
93 + insinto /usr/share/boost-build
94 + doins -r "${FILESDIR}/site-config.jam" \
95 + ../boost-build.jam bootstrap.jam build-system.jam ../example/user-config.jam *.py \
96 + build kernel options tools util
97 +
98 + find "${ED}"/usr/share/boost-build -iname '*.py' -delete || die
99 +
100 + dodoc ../notes/{changes,release_procedure,build_dir_option,relative_source_paths}.txt
101 +
102 + if use examples; then
103 + docinto examples
104 + dodoc -r ../example/.
105 + docompress -x /usr/share/doc/${PF}/examples
106 + fi
107 +}
108
109 diff --git a/dev-util/boost-build/files/boost-build-1.73.0-add-none-feature-options.patch b/dev-util/boost-build/files/boost-build-1.73.0-add-none-feature-options.patch
110 new file mode 100644
111 index 00000000000..1918a2456af
112 --- /dev/null
113 +++ b/dev-util/boost-build/files/boost-build-1.73.0-add-none-feature-options.patch
114 @@ -0,0 +1,22 @@
115 +--- a/tools/features/debug-feature.jam
116 ++++ b/tools/features/debug-feature.jam
117 +@@ -18,7 +18,7 @@
118 + |# # end::doc[]
119 +
120 + feature.feature debug-symbols
121 +- : on off
122 ++ : on off none
123 + : propagated ;
124 +
125 + #| tag::prof-doc[]
126 +--- a/tools/features/optimization-feature.jam
127 ++++ b/tools/features/optimization-feature.jam
128 +@@ -16,7 +16,7 @@
129 + |# # end::doc[]
130 +
131 + feature.feature optimization
132 +- : off speed space
133 ++ : off none speed space
134 + : propagated ;
135 +
136 + #| tag::inline-doc[]
137
138 diff --git a/dev-util/boost-build/files/boost-build-1.73.0-no-implicit-march-flags.patch b/dev-util/boost-build/files/boost-build-1.73.0-no-implicit-march-flags.patch
139 new file mode 100644
140 index 00000000000..ef6de894803
141 --- /dev/null
142 +++ b/dev-util/boost-build/files/boost-build-1.73.0-no-implicit-march-flags.patch
143 @@ -0,0 +1,269 @@
144 +Prevent bjam from injecting what it thinks are great -march/-mcpu flags
145 +in order to optimize code for you. This breaks on 32-bit builds, because
146 +-march=i686 will not work on an i486 CHOST.
147 +
148 +See also:
149 +https://bugs.gentoo.org/624616
150 +
151 +--- a/tools/gcc.jam
152 +--- a/tools/gcc.jam
153 ++++ b/tools/gcc.jam
154 +@@ -1202,129 +1202,8 @@
155 + # x86 and compatible
156 + # The 'native' option appeared in gcc 4.2 so we cannot safely use it as default.
157 + # Use i686 instead for 32-bit.
158 +-toolset.flags gcc OPTIONS <architecture>x86/<address-model>32/<instruction-set> : -march=i686 ;
159 +-cpu-flags gcc OPTIONS : x86 : native : -march=native ;
160 +-cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ;
161 +-cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ;
162 +-cpu-flags gcc OPTIONS : x86 : i686 : -march=i686 ;
163 +-cpu-flags gcc OPTIONS : x86 : pentium : -march=pentium ;
164 +-cpu-flags gcc OPTIONS : x86 : pentium-mmx : -march=pentium-mmx ;
165 +-cpu-flags gcc OPTIONS : x86 : pentiumpro : -march=pentiumpro ;
166 +-cpu-flags gcc OPTIONS : x86 : pentium2 : -march=pentium2 ;
167 +-cpu-flags gcc OPTIONS : x86 : pentium3 : -march=pentium3 ;
168 +-cpu-flags gcc OPTIONS : x86 : pentium3m : -march=pentium3m ;
169 +-cpu-flags gcc OPTIONS : x86 : pentium-m : -march=pentium-m ;
170 +-cpu-flags gcc OPTIONS : x86 : pentium4 : -march=pentium4 ;
171 +-cpu-flags gcc OPTIONS : x86 : pentium4m : -march=pentium4m ;
172 +-cpu-flags gcc OPTIONS : x86 : prescott : -march=prescott ;
173 +-cpu-flags gcc OPTIONS : x86 : nocona : -march=nocona ;
174 +-cpu-flags gcc OPTIONS : x86 : core2 : -march=core2 ;
175 +-cpu-flags gcc OPTIONS : x86 : conroe : -march=core2 ;
176 +-cpu-flags gcc OPTIONS : x86 : conroe-xe : -march=core2 ;
177 +-cpu-flags gcc OPTIONS : x86 : conroe-l : -march=core2 ;
178 +-cpu-flags gcc OPTIONS : x86 : allendale : -march=core2 ;
179 +-cpu-flags gcc OPTIONS : x86 : wolfdale : -march=core2 -msse4.1 ;
180 +-cpu-flags gcc OPTIONS : x86 : merom : -march=core2 ;
181 +-cpu-flags gcc OPTIONS : x86 : merom-xe : -march=core2 ;
182 +-cpu-flags gcc OPTIONS : x86 : kentsfield : -march=core2 ;
183 +-cpu-flags gcc OPTIONS : x86 : kentsfield-xe : -march=core2 ;
184 +-cpu-flags gcc OPTIONS : x86 : yorksfield : -march=core2 ;
185 +-cpu-flags gcc OPTIONS : x86 : penryn : -march=core2 ;
186 +-cpu-flags gcc OPTIONS : x86 : corei7 : -march=corei7 ;
187 +-cpu-flags gcc OPTIONS : x86 : nehalem : -march=corei7 ;
188 +-cpu-flags gcc OPTIONS : x86 : corei7-avx : -march=corei7-avx ;
189 +-cpu-flags gcc OPTIONS : x86 : sandy-bridge : -march=corei7-avx ;
190 +-cpu-flags gcc OPTIONS : x86 : core-avx-i : -march=core-avx-i ;
191 +-cpu-flags gcc OPTIONS : x86 : ivy-bridge : -march=core-avx-i ;
192 +-cpu-flags gcc OPTIONS : x86 : haswell : -march=core-avx-i -mavx2 -mfma -mbmi -mbmi2 -mlzcnt ;
193 +-cpu-flags gcc OPTIONS : x86 : broadwell : -march=broadwell ;
194 +-cpu-flags gcc OPTIONS : x86 : skylake : -march=skylake ;
195 +-cpu-flags gcc OPTIONS : x86 : skylake-avx512 : -march=skylake-avx512 ;
196 +-cpu-flags gcc OPTIONS : x86 : cannonlake : -march=skylake-avx512 -mavx512vbmi -mavx512ifma -msha ;
197 +-cpu-flags gcc OPTIONS : x86 : icelake : -march=icelake ;
198 +-cpu-flags gcc OPTIONS : x86 : k6 : -march=k6 ;
199 +-cpu-flags gcc OPTIONS : x86 : k6-2 : -march=k6-2 ;
200 +-cpu-flags gcc OPTIONS : x86 : k6-3 : -march=k6-3 ;
201 +-cpu-flags gcc OPTIONS : x86 : athlon : -march=athlon ;
202 +-cpu-flags gcc OPTIONS : x86 : athlon-tbird : -march=athlon-tbird ;
203 +-cpu-flags gcc OPTIONS : x86 : athlon-4 : -march=athlon-4 ;
204 +-cpu-flags gcc OPTIONS : x86 : athlon-xp : -march=athlon-xp ;
205 +-cpu-flags gcc OPTIONS : x86 : athlon-mp : -march=athlon-mp ;
206 + ##
207 +-cpu-flags gcc OPTIONS : x86 : k8 : -march=k8 ;
208 +-cpu-flags gcc OPTIONS : x86 : opteron : -march=opteron ;
209 +-cpu-flags gcc OPTIONS : x86 : athlon64 : -march=athlon64 ;
210 +-cpu-flags gcc OPTIONS : x86 : athlon-fx : -march=athlon-fx ;
211 +-cpu-flags gcc OPTIONS : x86 : k8-sse3 : -march=k8-sse3 ;
212 +-cpu-flags gcc OPTIONS : x86 : opteron-sse3 : -march=opteron-sse3 ;
213 +-cpu-flags gcc OPTIONS : x86 : athlon64-sse3 : -march=athlon64-sse3 ;
214 +-cpu-flags gcc OPTIONS : x86 : amdfam10 : -march=amdfam10 ;
215 +-cpu-flags gcc OPTIONS : x86 : barcelona : -march=barcelona ;
216 +-cpu-flags gcc OPTIONS : x86 : bdver1 : -march=bdver1 ;
217 +-cpu-flags gcc OPTIONS : x86 : bdver2 : -march=bdver2 ;
218 +-cpu-flags gcc OPTIONS : x86 : bdver3 : -march=bdver3 ;
219 +-cpu-flags gcc OPTIONS : x86 : bdver4 : -march=bdver4 ;
220 +-cpu-flags gcc OPTIONS : x86 : btver1 : -march=btver1 ;
221 +-cpu-flags gcc OPTIONS : x86 : btver2 : -march=btver2 ;
222 +-cpu-flags gcc OPTIONS : x86 : znver1 : -march=znver1 ;
223 +-cpu-flags gcc OPTIONS : x86 : winchip-c6 : -march=winchip-c6 ;
224 +-cpu-flags gcc OPTIONS : x86 : winchip2 : -march=winchip2 ;
225 +-cpu-flags gcc OPTIONS : x86 : c3 : -march=c3 ;
226 +-cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ;
227 + ##
228 +-cpu-flags gcc OPTIONS : x86 : atom : -march=atom ;
229 +-# Sparc
230 +-cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ;
231 +-cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ;
232 +-cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ;
233 +-cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ;
234 +-cpu-flags gcc OPTIONS : sparc : sparclite : -mcpu=sparclite ;
235 +-cpu-flags gcc OPTIONS : sparc : hypersparc : -mcpu=hypersparc ;
236 +-cpu-flags gcc OPTIONS : sparc : sparclite86x : -mcpu=sparclite86x ;
237 +-cpu-flags gcc OPTIONS : sparc : f930 : -mcpu=f930 ;
238 +-cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ;
239 +-cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ;
240 +-cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ;
241 +-cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ;
242 +-cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ;
243 +-cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ;
244 + # RS/6000 & PowerPC
245 +-cpu-flags gcc OPTIONS : power : 403 : -mcpu=403 ;
246 +-cpu-flags gcc OPTIONS : power : 505 : -mcpu=505 ;
247 +-cpu-flags gcc OPTIONS : power : 601 : -mcpu=601 ;
248 +-cpu-flags gcc OPTIONS : power : 602 : -mcpu=602 ;
249 +-cpu-flags gcc OPTIONS : power : 603 : -mcpu=603 ;
250 +-cpu-flags gcc OPTIONS : power : 603e : -mcpu=603e ;
251 +-cpu-flags gcc OPTIONS : power : 604 : -mcpu=604 ;
252 +-cpu-flags gcc OPTIONS : power : 604e : -mcpu=604e ;
253 +-cpu-flags gcc OPTIONS : power : 620 : -mcpu=620 ;
254 +-cpu-flags gcc OPTIONS : power : 630 : -mcpu=630 ;
255 +-cpu-flags gcc OPTIONS : power : 740 : -mcpu=740 ;
256 +-cpu-flags gcc OPTIONS : power : 7400 : -mcpu=7400 ;
257 +-cpu-flags gcc OPTIONS : power : 7450 : -mcpu=7450 ;
258 +-cpu-flags gcc OPTIONS : power : 750 : -mcpu=750 ;
259 +-cpu-flags gcc OPTIONS : power : 801 : -mcpu=801 ;
260 +-cpu-flags gcc OPTIONS : power : 821 : -mcpu=821 ;
261 +-cpu-flags gcc OPTIONS : power : 823 : -mcpu=823 ;
262 +-cpu-flags gcc OPTIONS : power : 860 : -mcpu=860 ;
263 +-cpu-flags gcc OPTIONS : power : 970 : -mcpu=970 ;
264 +-cpu-flags gcc OPTIONS : power : 8540 : -mcpu=8540 ;
265 +-cpu-flags gcc OPTIONS : power : power : -mcpu=power ;
266 +-cpu-flags gcc OPTIONS : power : power2 : -mcpu=power2 ;
267 +-cpu-flags gcc OPTIONS : power : power3 : -mcpu=power3 ;
268 +-cpu-flags gcc OPTIONS : power : power4 : -mcpu=power4 ;
269 +-cpu-flags gcc OPTIONS : power : power5 : -mcpu=power5 ;
270 +-cpu-flags gcc OPTIONS : power : powerpc : -mcpu=powerpc ;
271 +-cpu-flags gcc OPTIONS : power : powerpc64 : -mcpu=powerpc64 ;
272 +-cpu-flags gcc OPTIONS : power : rios : -mcpu=rios ;
273 +-cpu-flags gcc OPTIONS : power : rios1 : -mcpu=rios1 ;
274 +-cpu-flags gcc OPTIONS : power : rios2 : -mcpu=rios2 ;
275 +-cpu-flags gcc OPTIONS : power : rsc : -mcpu=rsc ;
276 +-cpu-flags gcc OPTIONS : power : rs64a : -mcpu=rs64 ;
277 +-cpu-flags gcc OPTIONS : s390x : z196 : -march=z196 ;
278 +-cpu-flags gcc OPTIONS : s390x : zEC12 : -march=zEC12 ;
279 +-cpu-flags gcc OPTIONS : s390x : z13 : -march=z13 ;
280 +-cpu-flags gcc OPTIONS : s390x : z14 : -march=z14 ;
281 +-cpu-flags gcc OPTIONS : s390x : z15 : -march=z15 ;
282 + # AIX variant of RS/6000 & PowerPC
283 + toolset.flags gcc AROPTIONS <address-model>64/<target-os>aix : "-X64" ;
284 +--- a/tools/gcc.py
285 ++++ b/tools/gcc.py
286 +@@ -745,126 +745,14 @@
287 + # x86 and compatible
288 + flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>32'], ['-m32'])
289 + flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>64'], ['-m64'])
290 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'native', ['-march=native'])
291 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'i486', ['-march=i486'])
292 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'i586', ['-march=i586'])
293 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'i686', ['-march=i686'], default=True)
294 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium', ['-march=pentium'])
295 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium-mmx', ['-march=pentium-mmx'])
296 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentiumpro', ['-march=pentiumpro'])
297 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium2', ['-march=pentium2'])
298 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium3', ['-march=pentium3'])
299 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium3m', ['-march=pentium3m'])
300 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium-m', ['-march=pentium-m'])
301 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium4', ['-march=pentium4'])
302 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium4m', ['-march=pentium4m'])
303 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'prescott', ['-march=prescott'])
304 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'nocona', ['-march=nocona'])
305 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'core2', ['-march=core2'])
306 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'conroe', ['-march=core2'])
307 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'conroe-xe', ['-march=core2'])
308 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'conroe-l', ['-march=core2'])
309 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'allendale', ['-march=core2'])
310 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'wolfdale', ['-march=core2', '-msse4.1'])
311 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'merom', ['-march=core2'])
312 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'merom-xe', ['-march=core2'])
313 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'kentsfield', ['-march=core2'])
314 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'kentsfield-xe', ['-march=core2'])
315 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'yorksfield', ['-march=core2'])
316 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'penryn', ['-march=core2'])
317 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'corei7', ['-march=corei7'])
318 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'nehalem', ['-march=corei7'])
319 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'corei7-avx', ['-march=corei7-avx'])
320 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'sandy-bridge', ['-march=corei7-avx'])
321 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'core-avx-i', ['-march=core-avx-i'])
322 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'ivy-bridge', ['-march=core-avx-i'])
323 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'haswell', ['-march=core-avx-i', '-mavx2', '-mfma', '-mbmi', '-mbmi2', '-mlzcnt'])
324 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'k6', ['-march=k6'])
325 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'k6-2', ['-march=k6-2'])
326 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'k6-3', ['-march=k6-3'])
327 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon', ['-march=athlon'])
328 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-tbird', ['-march=athlon-tbird'])
329 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-4', ['-march=athlon-4'])
330 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-xp', ['-march=athlon-xp'])
331 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-mp', ['-march=athlon-mp'])
332 + ##
333 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'k8', ['-march=k8'])
334 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'opteron', ['-march=opteron'])
335 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon64', ['-march=athlon64'])
336 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-fx', ['-march=athlon-fx'])
337 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'k8-sse3', ['-march=k8-sse3'])
338 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'opteron-sse3', ['-march=opteron-sse3'])
339 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon64-sse3', ['-march=athlon64-sse3'])
340 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'amdfam10', ['-march=amdfam10'])
341 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'barcelona', ['-march=barcelona'])
342 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'bdver1', ['-march=bdver1'])
343 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'bdver2', ['-march=bdver2'])
344 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'bdver3', ['-march=bdver3'])
345 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'btver1', ['-march=btver1'])
346 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'btver2', ['-march=btver2'])
347 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'winchip-c6', ['-march=winchip-c6'])
348 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'winchip2', ['-march=winchip2'])
349 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'c3', ['-march=c3'])
350 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'c3-2', ['-march=c3-2'])
351 + ##
352 +-cpu_flags('gcc', 'OPTIONS', 'x86', 'atom', ['-march=atom'])
353 + # Sparc
354 + flags('gcc', 'OPTIONS', ['<architecture>sparc/<address-model>32'], ['-m32'])
355 + flags('gcc', 'OPTIONS', ['<architecture>sparc/<address-model>64'], ['-m64'])
356 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v7', ['-mcpu=v7'], default=True)
357 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'cypress', ['-mcpu=cypress'])
358 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v8', ['-mcpu=v8'])
359 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'supersparc', ['-mcpu=supersparc'])
360 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclite', ['-mcpu=sparclite'])
361 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'hypersparc', ['-mcpu=hypersparc'])
362 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclite86x', ['-mcpu=sparclite86x'])
363 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'f930', ['-mcpu=f930'])
364 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'f934', ['-mcpu=f934'])
365 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclet', ['-mcpu=sparclet'])
366 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'tsc701', ['-mcpu=tsc701'])
367 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v9', ['-mcpu=v9'])
368 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'ultrasparc', ['-mcpu=ultrasparc'])
369 +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'ultrasparc3', ['-mcpu=ultrasparc3'])
370 + # RS/6000 & PowerPC
371 + flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>32'], ['-m32'])
372 + flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>64'], ['-m64'])
373 +-cpu_flags('gcc', 'OPTIONS', 'power', '403', ['-mcpu=403'])
374 +-cpu_flags('gcc', 'OPTIONS', 'power', '505', ['-mcpu=505'])
375 +-cpu_flags('gcc', 'OPTIONS', 'power', '601', ['-mcpu=601'])
376 +-cpu_flags('gcc', 'OPTIONS', 'power', '602', ['-mcpu=602'])
377 +-cpu_flags('gcc', 'OPTIONS', 'power', '603', ['-mcpu=603'])
378 +-cpu_flags('gcc', 'OPTIONS', 'power', '603e', ['-mcpu=603e'])
379 +-cpu_flags('gcc', 'OPTIONS', 'power', '604', ['-mcpu=604'])
380 +-cpu_flags('gcc', 'OPTIONS', 'power', '604e', ['-mcpu=604e'])
381 +-cpu_flags('gcc', 'OPTIONS', 'power', '620', ['-mcpu=620'])
382 +-cpu_flags('gcc', 'OPTIONS', 'power', '630', ['-mcpu=630'])
383 +-cpu_flags('gcc', 'OPTIONS', 'power', '740', ['-mcpu=740'])
384 +-cpu_flags('gcc', 'OPTIONS', 'power', '7400', ['-mcpu=7400'])
385 +-cpu_flags('gcc', 'OPTIONS', 'power', '7450', ['-mcpu=7450'])
386 +-cpu_flags('gcc', 'OPTIONS', 'power', '750', ['-mcpu=750'])
387 +-cpu_flags('gcc', 'OPTIONS', 'power', '801', ['-mcpu=801'])
388 +-cpu_flags('gcc', 'OPTIONS', 'power', '821', ['-mcpu=821'])
389 +-cpu_flags('gcc', 'OPTIONS', 'power', '823', ['-mcpu=823'])
390 +-cpu_flags('gcc', 'OPTIONS', 'power', '860', ['-mcpu=860'])
391 +-cpu_flags('gcc', 'OPTIONS', 'power', '970', ['-mcpu=970'])
392 +-cpu_flags('gcc', 'OPTIONS', 'power', '8540', ['-mcpu=8540'])
393 +-cpu_flags('gcc', 'OPTIONS', 'power', 'power', ['-mcpu=power'])
394 +-cpu_flags('gcc', 'OPTIONS', 'power', 'power2', ['-mcpu=power2'])
395 +-cpu_flags('gcc', 'OPTIONS', 'power', 'power3', ['-mcpu=power3'])
396 +-cpu_flags('gcc', 'OPTIONS', 'power', 'power4', ['-mcpu=power4'])
397 +-cpu_flags('gcc', 'OPTIONS', 'power', 'power5', ['-mcpu=power5'])
398 +-cpu_flags('gcc', 'OPTIONS', 'power', 'powerpc', ['-mcpu=powerpc'])
399 +-cpu_flags('gcc', 'OPTIONS', 'power', 'powerpc64', ['-mcpu=powerpc64'])
400 +-cpu_flags('gcc', 'OPTIONS', 'power', 'rios', ['-mcpu=rios'])
401 +-cpu_flags('gcc', 'OPTIONS', 'power', 'rios1', ['-mcpu=rios1'])
402 +-cpu_flags('gcc', 'OPTIONS', 'power', 'rios2', ['-mcpu=rios2'])
403 +-cpu_flags('gcc', 'OPTIONS', 'power', 'rsc', ['-mcpu=rsc'])
404 +-cpu_flags('gcc', 'OPTIONS', 'power', 'rs64a', ['-mcpu=rs64'])
405 +-cpu_flags('gcc', 'OPTIONS', 's390x', 'z196', ['-march=z196'])
406 +-cpu_flags('gcc', 'OPTIONS', 's390x', 'zEC12', ['-march=zEC12'])
407 +-cpu_flags('gcc', 'OPTIONS', 's390x', 'z13', ['-march=z13'])
408 +-cpu_flags('gcc', 'OPTIONS', 's390x', 'z14', ['-march=z14'])
409 +-cpu_flags('gcc', 'OPTIONS', 's390x', 'z15', ['-march=z15'])
410 + # AIX variant of RS/6000 & PowerPC
411 + flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>32/<target-os>aix'], ['-maix32'])
412 + flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>64/<target-os>aix'], ['-maix64'])