config/cc/gcc.in
author "Michael Hope <michaelh@juju.net.nz>"
Fri Jun 28 22:23:54 2013 +0200 (2013-06-28)
changeset 3221 0fdcf9204209
parent 3219 db27d12ec7c2
child 3228 8b9af6488210
permissions -rw-r--r--
cc/gcc: update Linaro GCC revisions for 2013.06

Update Linaro GCC with the latest available revisions.

Also updates Linaro GCC 4.6 to the final version.

Signed-off-by: "Michael Hope" <michaelh@juju.net.nz>
Message-Id: <83e33862f7641c2ad326.1372451435@localhost>
Patchwork-Id: 255666
     1 # Compiler options
     2 #
     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
     9 ##
    10 ## help gcc is the full-blown GNU compiler. This is what most people will choose.
    11 ## help
    12 ## help gcc supports many languages, a powerful code parser, optimised binary
    13 ## help output, and lots of other features.
    14 
    15 config CC_GCC_SHOW_LINARO
    16     bool
    17     prompt "Show Linaro versions"
    18     help
    19       Linaro is maintaining some advanced/more stable/experimental versions
    20       of gcc, especially for the ARM architecture.
    21       
    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...
    25       
    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.
    29       
    30       Linaro: http://www.linaro.org/
    31 
    32 choice
    33     bool
    34     prompt "gcc version"
    35 
    36 # Don't remove next line
    37 # CT_INSERT_VERSION_BELOW
    38 
    39 config CC_V_linaro_4_8
    40     bool
    41     prompt "linaro-4.8-2013.06-1"
    42     depends on CC_GCC_SHOW_LINARO
    43     select CC_GCC_4_8
    44 
    45 config CC_V_4_8_0
    46     bool
    47     prompt "4.8.0"
    48     select CC_GCC_4_8
    49 
    50 config CC_V_linaro_4_7
    51     bool
    52     prompt "linaro-4.7-2013.06-1"
    53     depends on CC_GCC_SHOW_LINARO
    54     select CC_GCC_4_7
    55 
    56 config CC_V_4_7_3
    57     bool
    58     prompt "4.7.3"
    59     select CC_GCC_4_7
    60 
    61 config CC_V_4_7_2
    62     bool
    63     prompt "4.7.2"
    64     select CC_GCC_4_7
    65 
    66 config CC_V_4_7_1
    67     bool
    68     prompt "4.7.1"
    69     select CC_GCC_4_7
    70 
    71 config CC_V_4_7_0
    72     bool
    73     prompt "4.7.0"
    74     select CC_GCC_4_7
    75 
    76 config CC_V_linaro_4_6
    77     bool
    78     prompt "linaro-4.6-2013.05"
    79     depends on CC_GCC_SHOW_LINARO
    80     select CC_GCC_4_6
    81 
    82 config CC_V_4_6_4
    83     bool
    84     prompt "4.6.4"
    85     select CC_GCC_4_6
    86 
    87 config CC_V_4_6_3
    88     bool
    89     prompt "4.6.3"
    90     select CC_GCC_4_6
    91 
    92 config CC_V_4_6_2
    93     bool
    94     prompt "4.6.2"
    95     select CC_GCC_4_6
    96 
    97 config CC_V_4_6_1
    98     bool
    99     prompt "4.6.1"
   100     select CC_GCC_4_6
   101 
   102 config CC_V_4_6_0
   103     bool
   104     prompt "4.6.0"
   105     select CC_GCC_4_6
   106 
   107 config CC_V_linaro_4_5
   108     bool
   109     prompt "linaro-4.5-2012.03"
   110     depends on CC_GCC_SHOW_LINARO
   111     select CC_GCC_4_5
   112 
   113 config CC_V_4_5_3
   114     bool
   115     prompt "4.5.3"
   116     select CC_GCC_4_5
   117 
   118 config CC_V_4_5_2
   119     bool
   120     prompt "4.5.2"
   121     select CC_GCC_4_5
   122 
   123 config CC_V_4_5_1
   124     bool
   125     prompt "4.5.1"
   126     select CC_GCC_4_5
   127 
   128 config CC_V_4_5_0
   129     bool
   130     prompt "4.5.0"
   131     select CC_GCC_4_5
   132 
   133 
   134 config CC_V_linaro_4_4
   135     bool
   136     prompt "linaro-4.4-2011.02-0"
   137     depends on CC_GCC_SHOW_LINARO
   138     select CC_GCC_4_4
   139 
   140 config CC_V_4_4_7
   141     bool
   142     prompt "4.4.7"
   143     select CC_GCC_4_4
   144 
   145 config CC_V_4_4_6
   146     bool
   147     prompt "4.4.6"
   148     select CC_GCC_4_4
   149 
   150 config CC_V_4_4_5
   151     bool
   152     prompt "4.4.5"
   153     select CC_GCC_4_4
   154 
   155 config CC_V_4_4_4
   156     bool
   157     prompt "4.4.4"
   158     select CC_GCC_4_4
   159 
   160 config CC_V_4_4_3
   161     bool
   162     prompt "4.4.3"
   163     select CC_GCC_4_4
   164 
   165 config CC_V_4_4_2
   166     bool
   167     prompt "4.4.2"
   168     select CC_GCC_4_4
   169 
   170 config CC_V_4_4_1
   171     bool
   172     prompt "4.4.1"
   173     select CC_GCC_4_4
   174 
   175 config CC_V_4_4_0
   176     bool
   177     prompt "4.4.0"
   178     select CC_GCC_4_4
   179 
   180 config CC_V_4_3_6
   181     bool
   182     prompt "4.3.6"
   183     select CC_GCC_4_3
   184 
   185 config CC_V_4_3_5
   186     bool
   187     prompt "4.3.5"
   188     select CC_GCC_4_3
   189 
   190 config CC_V_4_3_4
   191     bool
   192     prompt "4.3.4"
   193     select CC_GCC_4_3
   194 
   195 config CC_V_4_3_3
   196     bool
   197     prompt "4.3.3"
   198     select CC_GCC_4_3
   199 
   200 config CC_V_4_3_2
   201     bool
   202     prompt "4.3.2"
   203     select CC_GCC_4_3
   204 
   205 config CC_V_4_3_1
   206     bool
   207     prompt "4.3.1"
   208     select CC_GCC_4_3
   209 
   210 config CC_V_4_2_4
   211     bool
   212     prompt "4.2.4"
   213     select CC_GCC_4_2
   214 
   215 # We need that one, it's the only version with avr32 support
   216 # because we have a patch for it
   217 config CC_V_4_2_2
   218     bool
   219     prompt "4.2.2"
   220     select CC_GCC_4_2
   221 
   222 config CC_V_4_1_2
   223     bool
   224     prompt "4.1.2 (OBSOLETE)"
   225     depends on OBSOLETE
   226 
   227 config CC_V_4_0_4
   228     bool
   229     prompt "4.0.4 (OBSOLETE)"
   230     depends on OBSOLETE
   231 
   232 config CC_V_3_4_6
   233     bool
   234     prompt "3.4.6 (OBSOLETE)"
   235     depends on OBSOLETE
   236 
   237 config CC_CUSTOM
   238     bool
   239     prompt "Custom gcc"
   240     depends on EXPERIMENTAL
   241     select CC_GCC_latest
   242 
   243 endchoice
   244 
   245 if CC_CUSTOM
   246 
   247 config CC_CUSTOM_LOCATION
   248     string
   249     prompt "Full path to custom gcc source"
   250     default ""
   251     help
   252       Enter the path to the directory (or tarball) of your source for gcc,
   253       or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/gcc
   254 
   255 endif #CC_CUSTOM
   256 
   257 config CC_GCC_4_2
   258     bool
   259     select CC_GCC_4_2_or_later
   260 
   261 config CC_GCC_4_2_or_later
   262     bool
   263 
   264 config CC_GCC_4_3
   265     bool
   266     select CC_GCC_4_3_or_later
   267     select CC_GCC_USE_GMP_MPFR
   268     select CC_GCC_HAS_PKGVERSION_BUGURL
   269 
   270 config CC_GCC_4_3_or_later
   271     bool
   272     select CC_GCC_4_2_or_later
   273 
   274 config CC_GCC_4_4
   275     bool
   276     select CC_GCC_4_4_or_later
   277     select CC_GCC_USE_GMP_MPFR
   278     select CC_GCC_HAS_GRAPHITE
   279     select CC_GCC_HAS_PKGVERSION_BUGURL
   280 
   281 config CC_GCC_4_4_or_later
   282     bool
   283     select CC_GCC_4_3_or_later
   284 
   285 config CC_GCC_4_5
   286     bool
   287     select CC_GCC_4_5_or_later
   288     select CC_GCC_USE_GMP_MPFR
   289     select CC_GCC_USE_MPC
   290     select CC_GCC_HAS_GRAPHITE
   291     select CC_GCC_HAS_LTO
   292     select CC_GCC_HAS_PKGVERSION_BUGURL
   293     select CC_GCC_HAS_BUILD_ID
   294 
   295 config CC_GCC_4_5_or_later
   296     bool
   297     select CC_GCC_4_4_or_later
   298 
   299 config CC_GCC_4_6
   300     bool
   301     select CC_GCC_4_6_or_later
   302     select CC_GCC_USE_GMP_MPFR
   303     select CC_GCC_USE_MPC
   304     select CC_GCC_HAS_GRAPHITE
   305     select CC_GCC_HAS_LTO
   306     select CC_GCC_HAS_PKGVERSION_BUGURL
   307     select CC_GCC_HAS_BUILD_ID
   308     select CC_GCC_HAS_LIBQUADMATH
   309 
   310 config CC_GCC_4_6_or_later
   311     bool
   312     select CC_GCC_4_5_or_later
   313 
   314 config CC_GCC_4_7
   315     bool
   316     select CC_GCC_4_7_or_later
   317     select CC_GCC_USE_GMP_MPFR
   318     select CC_GCC_USE_MPC
   319     select CC_GCC_HAS_GRAPHITE
   320     select CC_GCC_HAS_LTO
   321     select CC_GCC_HAS_PKGVERSION_BUGURL
   322     select CC_GCC_HAS_BUILD_ID
   323     select CC_GCC_HAS_LNK_HASH_STYLE
   324     select CC_GCC_HAS_LIBQUADMATH
   325 
   326 config CC_GCC_4_7_or_later
   327     bool
   328     select CC_GCC_4_6_or_later
   329 
   330 config CC_GCC_4_8
   331     bool
   332     select CC_GCC_4_8_or_later
   333     select CC_GCC_USE_GMP_MPFR
   334     select CC_GCC_USE_MPC
   335     select CC_GCC_HAS_GRAPHITE
   336     select CC_GCC_HAS_LTO
   337     select CC_GCC_HAS_PKGVERSION_BUGURL
   338     select CC_GCC_HAS_BUILD_ID
   339     select CC_GCC_HAS_LNK_HASH_STYLE
   340     select CC_GCC_HAS_LIBQUADMATH
   341 
   342 config CC_GCC_4_8_or_later
   343     bool
   344     select CC_GCC_4_7_or_later
   345 
   346 config CC_GCC_latest
   347     bool
   348     select CC_GCC_4_8_or_later
   349     select CC_GCC_USE_GMP_MPFR
   350     select CC_GCC_USE_MPC
   351     select CC_GCC_HAS_GRAPHITE
   352     select CC_GCC_HAS_LTO
   353     select CC_GCC_HAS_PKGVERSION_BUGURL
   354     select CC_GCC_HAS_BUILD_ID
   355     select CC_GCC_HAS_LNK_HASH_STYLE
   356     select CC_GCC_HAS_LIBQUADMATH
   357 
   358 config CC_GCC_HAS_GRAPHITE
   359     bool
   360 
   361 # For graphite: gcc 4.4..4.7 need ppl, while 4.8.. need isl
   362 # Prompt in config/cc/gcc.in.2
   363 config CC_GCC_USE_GRAPHITE
   364     bool
   365     default y
   366     depends on CC_GCC_HAS_GRAPHITE
   367     select CLOOG_NEEDED
   368     select PPL_NEEDED if !CC_GCC_4_8_or_later
   369     select ISL_NEEDED if CC_GCC_4_8_or_later
   370     help
   371       Enable the GRAPHITE loop optimsations.
   372       
   373       On some systems (eg. Cygwin), PPL and/or CLooG (required to enable
   374       GRAPHITE) may not build properly (yet), so you'll have to say 'N'
   375       here (or help debug the issues)
   376 
   377 # The way LTO works is a bit twisted.
   378 # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
   379 # Basically:
   380 #   - if binutils has plugins: LTO is handled by ld/gold by loading
   381 #     the plugin when linking
   382 #   - if binutils does not have plugins: LTO is handled by collect2
   383 # In any case, LTO support does not depend on plugins, but takes
   384 # advantage of it
   385 config CC_GCC_HAS_LTO
   386     bool
   387 
   388 # Prompt in config/cc/gcc.in.2
   389 config CC_GCC_USE_LTO
   390     bool
   391     default y
   392     depends on CC_GCC_HAS_LTO
   393     select CC_GCC_USE_LIBELF if CC_GCC_4_5
   394     help
   395       Enable the Link Time Optimisations.
   396 
   397 config CC_GCC_HAS_PKGVERSION_BUGURL
   398     bool
   399 
   400 config CC_GCC_HAS_BUILD_ID
   401     bool
   402 
   403 config CC_GCC_HAS_LNK_HASH_STYLE
   404     bool
   405 
   406 # Only enable gcc's support for plugins if binutils has it as well
   407 # They are usefull only when doing LTO, but it does no harm enabling
   408 # them even without LTO.
   409 config CC_GCC_ENABLE_PLUGINS
   410     bool
   411     depends on BINUTILS_PLUGINS
   412     depends on ! STATIC_TOOLCHAIN
   413     default y
   414 
   415 # If binutils installs gold, enable support for gold in gcc
   416 config CC_GCC_GOLD
   417     bool
   418     depends on BINUTILS_GOLD_INSTALLED
   419     default y
   420 
   421 config CC_GCC_USE_GMP_MPFR
   422     bool
   423     select GMP_NEEDED
   424     select MPFR_NEEDED
   425 
   426     select CLOOG_NEEDED
   427 
   428 config CC_GCC_USE_MPC
   429     bool
   430     select MPC_NEEDED
   431 
   432 config CC_GCC_USE_LIBELF
   433     bool
   434     select LIBELF_NEEDED
   435 
   436 config CC_GCC_HAS_LIBQUADMATH
   437     bool
   438 
   439 config CC_VERSION
   440     string
   441 # Don't remove next line
   442 # CT_INSERT_VERSION_STRING_BELOW
   443     default "linaro-4.8-2013.06-1" if CC_V_linaro_4_8
   444     default "4.8.0" if CC_V_4_8_0
   445     default "linaro-4.7-2013.06-1" if CC_V_linaro_4_7
   446     default "4.7.3" if CC_V_4_7_3
   447     default "4.7.2" if CC_V_4_7_2
   448     default "4.7.1" if CC_V_4_7_1
   449     default "4.7.0" if CC_V_4_7_0
   450     default "linaro-4.6-2013.05" if CC_V_linaro_4_6
   451     default "4.6.4" if CC_V_4_6_4
   452     default "4.6.3" if CC_V_4_6_3
   453     default "4.6.2" if CC_V_4_6_2
   454     default "4.6.1" if CC_V_4_6_1
   455     default "4.6.0" if CC_V_4_6_0
   456     default "linaro-4.5-2012.03" if CC_V_linaro_4_5
   457     default "4.5.3" if CC_V_4_5_3
   458     default "4.5.2" if CC_V_4_5_2
   459     default "4.5.1" if CC_V_4_5_1
   460     default "4.5.0" if CC_V_4_5_0
   461     default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4
   462     default "4.4.7" if CC_V_4_4_7
   463     default "4.4.6" if CC_V_4_4_6
   464     default "4.4.5" if CC_V_4_4_5
   465     default "4.4.4" if CC_V_4_4_4
   466     default "4.4.3" if CC_V_4_4_3
   467     default "4.4.2" if CC_V_4_4_2
   468     default "4.4.1" if CC_V_4_4_1
   469     default "4.4.0" if CC_V_4_4_0
   470     default "4.3.6" if CC_V_4_3_6
   471     default "4.3.5" if CC_V_4_3_5
   472     default "4.3.4" if CC_V_4_3_4
   473     default "4.3.3" if CC_V_4_3_3
   474     default "4.3.2" if CC_V_4_3_2
   475     default "4.3.1" if CC_V_4_3_1
   476     default "4.3.0" if CC_V_4_3_0
   477     default "4.2.4" if CC_V_4_2_4
   478     default "4.2.2" if CC_V_4_2_2
   479     default "4.1.2" if CC_V_4_1_2
   480     default "4.0.4" if CC_V_4_0_4
   481     default "3.4.6" if CC_V_3_4_6
   482     default "custom" if CC_CUSTOM
   483 
   484 config CC_LANG_JAVA_USE_ECJ
   485     bool
   486     default y
   487     depends on CC_LANG_JAVA
   488     depends on CC_GCC_4_3_or_later
   489 
   490 # Fortran always requires GMP+MPFR, whatever the gcc version
   491 config CC_LANG_FORTRAN
   492     select CC_GCC_USE_GMP_MPFR