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 (EXPERIMENTAL)"
18 depends on EXPERIMENTAL
20 Linaro is maintaining some advanced/more stable/experimental versions
21 of gcc, especially for the ARM architecture.
23 Those versions have not been blessed by the gcc comunity (nor have they
24 been cursed either!), but they look to be pretty much stable, and even
25 more stable than the upstream versions. YMMV...
27 If you do not know what this Linaro stuff is, then simply say 'n' here,
28 and rest in peace. OTOH, if you know what you are doing, you will be
29 able to use and enjoy :-) the Linaro versions by saying 'y' here.
31 Linaro: http://www.linaro.org/
40 depends on EXPERIMENTAL
41 depends on CONFIGURE_has_svn
44 # Don't remove next line
45 # CT_INSERT_VERSION_BELOW
47 config CC_V_linaro_4_7_2012_10
49 prompt "linaro-4.7-2012.10 (EXPERIMENTAL)"
50 depends on CC_GCC_SHOW_LINARO
60 prompt "4.7.1 (EXPERIMENTAL)"
61 depends on EXPERIMENTAL
66 prompt "4.7.0 (EXPERIMENTAL)"
67 depends on EXPERIMENTAL
70 config CC_V_linaro_4_6_2012_10
72 prompt "linaro-4.6-2012.10 (EXPERIMENTAL)"
73 depends on CC_GCC_SHOW_LINARO
96 config CC_V_linaro_4_5_2012_03
98 prompt "linaro-4.5-2012.03 (EXPERIMENTAL)"
99 depends on CC_GCC_SHOW_LINARO
123 config CC_V_linaro_4_4_2011_02_0
125 prompt "linaro-4.4-2011.02-0 (EXPERIMENTAL)"
126 depends on CC_GCC_SHOW_LINARO
206 prompt "4.2.3 (OBSOLETE)"
217 prompt "4.2.1 (OBSOLETE)"
223 prompt "4.2.0 (OBSOLETE)"
229 prompt "4.1.2 (OBSOLETE)"
234 prompt "4.0.4 (OBSOLETE)"
239 prompt "3.4.6 (OBSOLETE)"
248 prompt "Branch or tag to use"
251 Enter the branch of gcc to use. Default is trunk
253 A few examples might be:
255 * branches/gcc-4_7-branch
256 * branches/gcc-4_4-branch
259 * tags/gcc_4_7_1_release
260 * tags/microblaze-4.4.2
264 prompt "Revision to use"
267 Enter the revision of you want to use. Default is HEAD
269 A revision argument can be one of:
270 NUMBER revision number
271 '{' DATE '}' revision at start of the date (*)
272 'HEAD' latest in repository
274 (*) If you want to use a date, please use ISO-8601 formats if
279 prompt "use http:// instead of svn://"
281 By default, when gcc is downloaded it is checked out using
282 svn://gcc.gnu.org/svn/gcc. This option allows you to download gcc
283 from http://gcc.gnu.org/svn/gcc, if you are behind a proxy or firewall.
284 If you are behind a proxy, don't forget to update your
285 .subversion/servers file with your proxy info in [global].
289 prompt "checkout instead of export"
291 By default, the gcc download will be an export of the subversion
292 repository. If you say 'y' here, then the repository will instead be
293 checked-out, so that you can update it later.
295 Note that crosstool-NG will *not* update your working copy, you will
296 have to do that yourself.
302 select CC_GCC_4_2_or_later
304 config CC_GCC_4_2_or_later
309 select CC_GCC_4_3_or_later
310 select CC_GCC_USE_GMP_MPFR
311 select CC_GCC_HAS_PKGVERSION_BUGURL
313 config CC_GCC_4_3_or_later
315 select CC_GCC_4_2_or_later
319 select CC_GCC_4_4_or_later
320 select CC_GCC_USE_GMP_MPFR
321 select CC_GCC_HAS_GRAPHITE
322 select CC_GCC_HAS_PKGVERSION_BUGURL
324 config CC_GCC_4_4_or_later
326 select CC_GCC_4_3_or_later
330 select CC_GCC_4_5_or_later
331 select CC_GCC_USE_GMP_MPFR
332 select CC_GCC_USE_MPC
333 select CC_GCC_HAS_GRAPHITE
334 select CC_GCC_HAS_LTO
335 select CC_GCC_HAS_PKGVERSION_BUGURL
336 select CC_GCC_HAS_BUILD_ID
338 config CC_GCC_4_5_or_later
340 select CC_GCC_4_4_or_later
344 select CC_GCC_4_6_or_later
345 select CC_GCC_USE_GMP_MPFR
346 select CC_GCC_USE_MPC
347 select CC_GCC_HAS_GRAPHITE
348 select CC_GCC_HAS_LTO
349 select CC_GCC_HAS_PKGVERSION_BUGURL
350 select CC_GCC_HAS_BUILD_ID
351 select CC_GCC_HAS_LIBQUADMATH
353 config CC_GCC_4_6_or_later
355 select CC_GCC_4_5_or_later
359 select CC_GCC_4_7_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_4_7_or_later
371 select CC_GCC_4_6_or_later
375 select CC_GCC_4_7_or_later
376 select CC_GCC_USE_GMP_MPFR
377 select CC_GCC_USE_MPC
378 select CC_GCC_HAS_GRAPHITE
379 select CC_GCC_HAS_LTO
380 select CC_GCC_HAS_PKGVERSION_BUGURL
381 select CC_GCC_HAS_BUILD_ID
382 select CC_GCC_HAS_LNK_HASH_STYLE
383 select CC_GCC_HAS_LIBQUADMATH
385 config CC_GCC_HAS_GRAPHITE
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 config CC_GCC_HAS_PKGVERSION_BUGURL
402 config CC_GCC_HAS_BUILD_ID
405 config CC_GCC_HAS_LNK_HASH_STYLE
408 # Only enable gcc's support for plugins if binutils has it as well
409 # They are usefull only when doing LTO, but it does no harm enabling
410 # them even without LTO.
411 config CC_GCC_ENABLE_PLUGINS
413 depends on BINUTILS_PLUGINS
414 depends on ! STATIC_TOOLCHAIN
417 # If binutils installs gold, enable support for gold in gcc
420 depends on BINUTILS_GOLD_INSTALLED
423 config CC_GCC_USE_GMP_MPFR
428 config CC_GCC_USE_PPL_CLOOG
433 config CC_GCC_USE_MPC
437 config CC_GCC_USE_LIBELF
441 config CC_GCC_HAS_LIBQUADMATH
446 default "SVN" if CC_V_SVN
447 # Don't remove next line
448 # CT_INSERT_VERSION_STRING_BELOW
449 default "linaro-4.7-2012.10" if CC_V_linaro_4_7_2012_10
450 default "4.7.2" if CC_V_4_7_2
451 default "4.7.1" if CC_V_4_7_1
452 default "4.7.0" if CC_V_4_7_0
453 default "linaro-4.6-2012.10" if CC_V_linaro_4_6_2012_10
454 default "4.6.3" if CC_V_4_6_3
455 default "4.6.2" if CC_V_4_6_2
456 default "4.6.1" if CC_V_4_6_1
457 default "4.6.0" if CC_V_4_6_0
458 default "linaro-4.5-2012.03" if CC_V_linaro_4_5_2012_03
459 default "4.5.3" if CC_V_4_5_3
460 default "4.5.2" if CC_V_4_5_2
461 default "4.5.1" if CC_V_4_5_1
462 default "4.5.0" if CC_V_4_5_0
463 default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0
464 default "4.4.7" if CC_V_4_4_7
465 default "4.4.6" if CC_V_4_4_6
466 default "4.4.5" if CC_V_4_4_5
467 default "4.4.4" if CC_V_4_4_4
468 default "4.4.3" if CC_V_4_4_3
469 default "4.4.2" if CC_V_4_4_2
470 default "4.4.1" if CC_V_4_4_1
471 default "4.4.0" if CC_V_4_4_0
472 default "4.3.6" if CC_V_4_3_6
473 default "4.3.5" if CC_V_4_3_5
474 default "4.3.4" if CC_V_4_3_4
475 default "4.3.3" if CC_V_4_3_3
476 default "4.3.2" if CC_V_4_3_2
477 default "4.3.1" if CC_V_4_3_1
478 default "4.3.0" if CC_V_4_3_0
479 default "4.2.4" if CC_V_4_2_4
480 default "4.2.3" if CC_V_4_2_3
481 default "4.2.2" if CC_V_4_2_2
482 default "4.2.1" if CC_V_4_2_1
483 default "4.2.0" if CC_V_4_2_0
484 default "4.1.2" if CC_V_4_1_2
485 default "4.0.4" if CC_V_4_0_4
486 default "3.4.6" if CC_V_3_4_6
488 config CC_LANG_JAVA_USE_ECJ
491 depends on CC_LANG_JAVA
492 depends on CC_GCC_4_3_or_later
494 # Fortran always requires GMP+MPFR, whatever the gcc version
495 config CC_LANG_FORTRAN
496 select CC_GCC_USE_GMP_MPFR