binutils/binutils: 2.23.2 is a 2_23_or_later (ie. has gold)
Thus spake Niels:
This commit adds support for binutils 2.23.2
http://crosstool-ng.org/hg/crosstool-ng/rev/bc4b36e3df0c
However, in 'config/binutils/binutils.in <http://binutils.in>' the
Kconfig option to select this version of binutils does not automatically
select the symbol 'BINUTILS_2_23_or_later'. This makes gold unavailable
for the latest version of binutils. I'm not sure whether this is on
purpose or not, my impression is that you forgot to add the line "select
BINUTILS_2_23_or_later".
The problem still persists in the latest version in the repository
(032ebcc89c96).
Reported-by: Niels Penneman <niels@penneman.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 ## select CC_SUPPORT_CXX
4 ## select CC_SUPPORT_FORTRAN
5 ## select CC_SUPPORT_JAVA
6 ## select CC_SUPPORT_ADA
7 ## select CC_SUPPORT_OBJC
8 ## select CC_SUPPORT_OBJCXX
10 ## help gcc is the full-blown GNU compiler. This is what most people will choose.
12 ## help gcc supports many languages, a powerful code parser, optimised binary
13 ## help output, and lots of other features.
15 config CC_GCC_SHOW_LINARO
17 prompt "Show Linaro versions"
19 Linaro is maintaining some advanced/more stable/experimental versions
20 of gcc, especially for the ARM architecture.
22 Those versions have not been blessed by the gcc comunity (nor have they
23 been cursed either!), but they look to be pretty much stable, and even
24 more stable than the upstream versions. YMMV...
26 If you do not know what this Linaro stuff is, then simply say 'n' here,
27 and rest in peace. OTOH, if you know what you are doing, you will be
28 able to use and enjoy :-) the Linaro versions by saying 'y' here.
30 Linaro: http://www.linaro.org/
36 # Don't remove next line
37 # CT_INSERT_VERSION_BELOW
39 config CC_V_linaro_4_8
41 prompt "linaro-4.8-2013.06-1"
42 depends on CC_GCC_SHOW_LINARO
60 config CC_V_linaro_4_7
62 prompt "linaro-4.7-2013.06-1"
63 depends on CC_GCC_SHOW_LINARO
86 config CC_V_linaro_4_6
88 prompt "linaro-4.6-2013.05"
89 depends on CC_GCC_SHOW_LINARO
117 config CC_V_linaro_4_5
119 prompt "linaro-4.5-2012.03"
120 depends on CC_GCC_SHOW_LINARO
144 config CC_V_linaro_4_4
146 prompt "linaro-4.4-2011.02-0"
147 depends on CC_GCC_SHOW_LINARO
225 # We need that one, it's the only version with avr32 support
226 # because we have a patch for it
234 prompt "4.1.2 (OBSOLETE)"
239 prompt "4.0.4 (OBSOLETE)"
244 prompt "3.4.6 (OBSOLETE)"
250 depends on EXPERIMENTAL
257 config CC_CUSTOM_LOCATION
259 prompt "Full path to custom gcc source"
262 Enter the path to the directory (or tarball) of your source for gcc,
263 or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/gcc
269 select CC_GCC_4_2_or_later
271 config CC_GCC_4_2_or_later
276 select CC_GCC_4_3_or_later
277 select CC_GCC_USE_GMP_MPFR
278 select CC_GCC_HAS_PKGVERSION_BUGURL
280 config CC_GCC_4_3_or_later
282 select CC_GCC_4_2_or_later
286 select CC_GCC_4_4_or_later
287 select CC_GCC_USE_GMP_MPFR
288 select CC_GCC_HAS_GRAPHITE
289 select CC_GCC_HAS_PKGVERSION_BUGURL
291 config CC_GCC_4_4_or_later
293 select CC_GCC_4_3_or_later
297 select CC_GCC_4_5_or_later
298 select CC_GCC_USE_GMP_MPFR
299 select CC_GCC_USE_MPC
300 select CC_GCC_HAS_GRAPHITE
301 select CC_GCC_HAS_LTO
302 select CC_GCC_HAS_PKGVERSION_BUGURL
303 select CC_GCC_HAS_BUILD_ID
305 config CC_GCC_4_5_or_later
307 select CC_GCC_4_4_or_later
311 select CC_GCC_4_6_or_later
312 select CC_GCC_USE_GMP_MPFR
313 select CC_GCC_USE_MPC
314 select CC_GCC_HAS_GRAPHITE
315 select CC_GCC_HAS_LTO
316 select CC_GCC_HAS_PKGVERSION_BUGURL
317 select CC_GCC_HAS_BUILD_ID
318 select CC_GCC_HAS_LIBQUADMATH
320 config CC_GCC_4_6_or_later
322 select CC_GCC_4_5_or_later
326 select CC_GCC_4_7_or_later
327 select CC_GCC_USE_GMP_MPFR
328 select CC_GCC_USE_MPC
329 select CC_GCC_HAS_GRAPHITE
330 select CC_GCC_HAS_LTO
331 select CC_GCC_HAS_PKGVERSION_BUGURL
332 select CC_GCC_HAS_BUILD_ID
333 select CC_GCC_HAS_LNK_HASH_STYLE
334 select CC_GCC_HAS_LIBQUADMATH
336 config CC_GCC_4_7_or_later
338 select CC_GCC_4_6_or_later
342 select CC_GCC_4_8_or_later
343 select CC_GCC_USE_GMP_MPFR
344 select CC_GCC_USE_MPC
345 select CC_GCC_HAS_GRAPHITE
346 select CC_GCC_HAS_LTO
347 select CC_GCC_HAS_PKGVERSION_BUGURL
348 select CC_GCC_HAS_BUILD_ID
349 select CC_GCC_HAS_LNK_HASH_STYLE
350 select CC_GCC_HAS_LIBQUADMATH
351 select CC_SUPPORT_GOLANG
353 config CC_GCC_4_8_or_later
355 select CC_GCC_4_7_or_later
359 select CC_GCC_4_8_or_later
360 select CC_GCC_USE_GMP_MPFR
361 select CC_GCC_USE_MPC
362 select CC_GCC_HAS_GRAPHITE
363 select CC_GCC_HAS_LTO
364 select CC_GCC_HAS_PKGVERSION_BUGURL
365 select CC_GCC_HAS_BUILD_ID
366 select CC_GCC_HAS_LNK_HASH_STYLE
367 select CC_GCC_HAS_LIBQUADMATH
369 config CC_GCC_HAS_GRAPHITE
372 # For graphite: gcc 4.4..4.7 need ppl, while 4.8.. need isl
373 # Prompt in config/cc/gcc.in.2
374 config CC_GCC_USE_GRAPHITE
377 depends on CC_GCC_HAS_GRAPHITE
379 select PPL_NEEDED if !CC_GCC_4_8_or_later
380 select ISL_NEEDED if CC_GCC_4_8_or_later
382 Enable the GRAPHITE loop optimsations.
384 On some systems (eg. Cygwin), PPL and/or CLooG (required to enable
385 GRAPHITE) may not build properly (yet), so you'll have to say 'N'
386 here (or help debug the issues)
388 # The way LTO works is a bit twisted.
389 # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
391 # - if binutils has plugins: LTO is handled by ld/gold by loading
392 # the plugin when linking
393 # - if binutils does not have plugins: LTO is handled by collect2
394 # In any case, LTO support does not depend on plugins, but takes
396 config CC_GCC_HAS_LTO
399 # Prompt in config/cc/gcc.in.2
400 config CC_GCC_USE_LTO
403 depends on CC_GCC_HAS_LTO
404 select CC_GCC_USE_LIBELF if CC_GCC_4_5
406 Enable the Link Time Optimisations.
408 config CC_GCC_HAS_PKGVERSION_BUGURL
411 config CC_GCC_HAS_BUILD_ID
414 config CC_GCC_HAS_LNK_HASH_STYLE
417 # Only enable gcc's support for plugins if binutils has it as well
418 # They are usefull only when doing LTO, but it does no harm enabling
419 # them even without LTO.
420 config CC_GCC_ENABLE_PLUGINS
422 depends on BINUTILS_PLUGINS
423 depends on ! STATIC_TOOLCHAIN
426 # If binutils installs gold, enable support for gold in gcc
429 depends on BINUTILS_GOLD_INSTALLED
432 config CC_GCC_USE_GMP_MPFR
437 config CC_GCC_USE_MPC
441 config CC_GCC_USE_LIBELF
445 config CC_GCC_HAS_LIBQUADMATH
450 # Don't remove next line
451 # CT_INSERT_VERSION_STRING_BELOW
452 default "linaro-4.8-2013.06-1" if CC_V_linaro_4_8
453 default "4.8.2" if CC_V_4_8_2
454 default "4.8.1" if CC_V_4_8_1
455 default "4.8.0" if CC_V_4_8_0
456 default "linaro-4.7-2013.06-1" if CC_V_linaro_4_7
457 default "4.7.3" if CC_V_4_7_3
458 default "4.7.2" if CC_V_4_7_2
459 default "4.7.1" if CC_V_4_7_1
460 default "4.7.0" if CC_V_4_7_0
461 default "linaro-4.6-2013.05" if CC_V_linaro_4_6
462 default "4.6.4" if CC_V_4_6_4
463 default "4.6.3" if CC_V_4_6_3
464 default "4.6.2" if CC_V_4_6_2
465 default "4.6.1" if CC_V_4_6_1
466 default "4.6.0" if CC_V_4_6_0
467 default "linaro-4.5-2012.03" if CC_V_linaro_4_5
468 default "4.5.3" if CC_V_4_5_3
469 default "4.5.2" if CC_V_4_5_2
470 default "4.5.1" if CC_V_4_5_1
471 default "4.5.0" if CC_V_4_5_0
472 default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4
473 default "4.4.7" if CC_V_4_4_7
474 default "4.4.6" if CC_V_4_4_6
475 default "4.4.5" if CC_V_4_4_5
476 default "4.4.4" if CC_V_4_4_4
477 default "4.4.3" if CC_V_4_4_3
478 default "4.4.2" if CC_V_4_4_2
479 default "4.4.1" if CC_V_4_4_1
480 default "4.4.0" if CC_V_4_4_0
481 default "4.3.6" if CC_V_4_3_6
482 default "4.3.5" if CC_V_4_3_5
483 default "4.3.4" if CC_V_4_3_4
484 default "4.3.3" if CC_V_4_3_3
485 default "4.3.2" if CC_V_4_3_2
486 default "4.3.1" if CC_V_4_3_1
487 default "4.3.0" if CC_V_4_3_0
488 default "4.2.4" if CC_V_4_2_4
489 default "4.2.2" if CC_V_4_2_2
490 default "4.1.2" if CC_V_4_1_2
491 default "4.0.4" if CC_V_4_0_4
492 default "3.4.6" if CC_V_3_4_6
493 default "custom" if CC_CUSTOM
495 config CC_LANG_JAVA_USE_ECJ
498 depends on CC_LANG_JAVA
499 depends on CC_GCC_4_3_or_later
501 # Fortran always requires GMP+MPFR, whatever the gcc version
502 config CC_LANG_FORTRAN
503 select CC_GCC_USE_GMP_MPFR