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/
36 # Don't remove next line
37 # CT_INSERT_VERSION_BELOW
39 config CC_V_linaro_4_6_2012_03
41 prompt "linaro-4.6-2012.03 (EXPERIMENTAL)"
42 depends on CC_GCC_SHOW_LINARO
47 prompt "4.6.3 (EXPERIMENTAL)"
48 depends on EXPERIMENTAL
53 prompt "4.6.2 (EXPERIMENTAL)"
54 depends on EXPERIMENTAL
59 prompt "4.6.1 (EXPERIMENTAL)"
60 depends on EXPERIMENTAL
65 prompt "4.6.0 (EXPERIMENTAL)"
66 depends on EXPERIMENTAL
69 config CC_V_linaro_4_5_2012_03
71 prompt "linaro-4.5-2012.03 (EXPERIMENTAL)"
72 depends on CC_GCC_SHOW_LINARO
77 prompt "4.5.3 (EXPERIMENTAL)"
78 depends on EXPERIMENTAL
83 prompt "4.5.2 (EXPERIMENTAL)"
84 depends on EXPERIMENTAL
89 prompt "4.5.1 (EXPERIMENTAL)"
90 depends on EXPERIMENTAL
95 prompt "4.5.0 (EXPERIMENTAL)"
96 depends on EXPERIMENTAL
100 config CC_V_linaro_4_4_2011_02_0
102 prompt "linaro-4.4-2011.02-0 (EXPERIMENTAL)"
103 depends on CC_GCC_SHOW_LINARO
178 prompt "4.2.3 (OBSOLETE)"
189 prompt "4.2.1 (OBSOLETE)"
195 prompt "4.2.0 (OBSOLETE)"
201 prompt "4.1.2 (OBSOLETE)"
206 prompt "4.0.4 (OBSOLETE)"
211 prompt "3.4.6 (OBSOLETE)"
218 select CC_GCC_4_2_or_later
220 config CC_GCC_4_2_or_later
225 select CC_GCC_4_3_or_later
226 select CC_GCC_USE_GMP_MPFR
227 select CC_GCC_HAS_PKGVERSION_BUGURL
229 config CC_GCC_4_3_or_later
231 select CC_GCC_4_2_or_later
235 select CC_GCC_4_4_or_later
236 select CC_GCC_USE_GMP_MPFR
237 select CC_GCC_HAS_GRAPHITE
238 select CC_GCC_HAS_PKGVERSION_BUGURL
240 config CC_GCC_4_4_or_later
242 select CC_GCC_4_3_or_later
246 select CC_GCC_4_5_or_later
247 select CC_GCC_USE_GMP_MPFR
248 select CC_GCC_USE_MPC
249 select CC_GCC_HAS_GRAPHITE
250 select CC_GCC_HAS_LTO
251 select CC_GCC_HAS_PKGVERSION_BUGURL
252 select CC_GCC_HAS_BUILD_ID
254 config CC_GCC_4_5_or_later
256 select CC_GCC_4_4_or_later
260 select CC_GCC_4_6_or_later
261 select CC_GCC_USE_GMP_MPFR
262 select CC_GCC_USE_MPC
263 select CC_GCC_HAS_GRAPHITE
264 select CC_GCC_HAS_LTO
265 select CC_GCC_HAS_PKGVERSION_BUGURL
266 select CC_GCC_HAS_BUILD_ID
268 config CC_GCC_4_6_or_later
270 select CC_GCC_4_5_or_later
272 config CC_GCC_HAS_GRAPHITE
275 # The way LTO works is a bit twisted.
276 # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
278 # - if binutils has plugins: LTO is handled by ld/gold by loading
279 # the plugin when linking
280 # - if binutils does not have plugins: LTO is handled by collect2
281 # In any case, LTO support does not depend on plugins, but takes
283 config CC_GCC_HAS_LTO
286 config CC_GCC_HAS_PKGVERSION_BUGURL
289 config CC_GCC_HAS_BUILD_ID
292 # For the upcoming 4.7 ?
293 # None have linker-hash-style support for now...
294 config CC_GCC_HAS_LNK_HASH_STYLE
297 # Only enable gcc's support for plugins if binutils has it as well
298 # They are usefull only when doing LTO, but it does no harm enabling
299 # them even without LTO.
300 config CC_GCC_ENABLE_PLUGINS
302 depends on BINUTILS_PLUGINS
303 depends on ! STATIC_TOOLCHAIN
306 # If binutils installs gold, enable support for gold in gcc
309 depends on BINUTILS_GOLD_INSTALLED
312 config CC_GCC_USE_GMP_MPFR
317 config CC_GCC_USE_PPL_CLOOG
322 config CC_GCC_USE_MPC
326 config CC_GCC_USE_LIBELF
332 # Don't remove next line
333 # CT_INSERT_VERSION_STRING_BELOW
334 default "linaro-4.6-2012.03" if CC_V_linaro_4_6_2012_03
335 default "4.6.3" if CC_V_4_6_3
336 default "4.6.2" if CC_V_4_6_2
337 default "4.6.1" if CC_V_4_6_1
338 default "4.6.0" if CC_V_4_6_0
339 default "linaro-4.5-2012.03" if CC_V_linaro_4_5_2012_03
340 default "4.5.3" if CC_V_4_5_3
341 default "4.5.2" if CC_V_4_5_2
342 default "4.5.1" if CC_V_4_5_1
343 default "4.5.0" if CC_V_4_5_0
344 default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0
345 default "4.4.6" if CC_V_4_4_6
346 default "4.4.5" if CC_V_4_4_5
347 default "4.4.4" if CC_V_4_4_4
348 default "4.4.3" if CC_V_4_4_3
349 default "4.4.2" if CC_V_4_4_2
350 default "4.4.1" if CC_V_4_4_1
351 default "4.4.0" if CC_V_4_4_0
352 default "4.3.6" if CC_V_4_3_6
353 default "4.3.5" if CC_V_4_3_5
354 default "4.3.4" if CC_V_4_3_4
355 default "4.3.3" if CC_V_4_3_3
356 default "4.3.2" if CC_V_4_3_2
357 default "4.3.1" if CC_V_4_3_1
358 default "4.3.0" if CC_V_4_3_0
359 default "4.2.4" if CC_V_4_2_4
360 default "4.2.3" if CC_V_4_2_3
361 default "4.2.2" if CC_V_4_2_2
362 default "4.2.1" if CC_V_4_2_1
363 default "4.2.0" if CC_V_4_2_0
364 default "4.1.2" if CC_V_4_1_2
365 default "4.0.4" if CC_V_4_0_4
366 default "3.4.6" if CC_V_3_4_6
368 config CC_LANG_JAVA_USE_ECJ
371 depends on CC_LANG_JAVA
372 depends on CC_GCC_4_3_or_later
374 # Fortran always requires GMP+MPFR, whatever the gcc version
375 config CC_LANG_FORTRAN
376 select CC_GCC_USE_GMP_MPFR