config/cc/gcc.in
author "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Mon Dec 12 13:25:11 2011 +0100 (2011-12-12)
changeset 2802 e98c6a720ce8
parent 2750 c6d10ee4ab25
child 2837 db26e387b70b
permissions -rw-r--r--
cc/gcc: update Linaro GCC revisions to 2011.12

Update Linaro GCC with the latest available revisions.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
     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 (EXPERIMENTAL)"
    18     depends on EXPERIMENTAL
    19     help
    20       Linaro is maintaining some advanced/more stable/experimental versions
    21       of gcc, especially for the ARM architecture.
    22       
    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...
    26       
    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.
    30       
    31       Linaro: http://www.linaro.org/
    32 
    33 choice
    34     bool
    35     prompt "gcc version"
    36 # Don't remove next line
    37 # CT_INSERT_VERSION_BELOW
    38 
    39 config CC_V_linaro_4_6_2011_12
    40     bool
    41     prompt "linaro-4.6-2011.12 (EXPERIMENTAL)"
    42     depends on CC_GCC_SHOW_LINARO
    43     select CC_GCC_4_6
    44 
    45 config CC_V_4_6_2
    46     bool
    47     prompt "4.6.2 (EXPERIMENTAL)"
    48     depends on EXPERIMENTAL
    49     select CC_GCC_4_6
    50 
    51 config CC_V_4_6_1
    52     bool
    53     prompt "4.6.1 (EXPERIMENTAL)"
    54     depends on EXPERIMENTAL
    55     select CC_GCC_4_6
    56 
    57 config CC_V_4_6_0
    58     bool
    59     prompt "4.6.0 (EXPERIMENTAL)"
    60     depends on EXPERIMENTAL
    61     select CC_GCC_4_6
    62 
    63 config CC_V_linaro_4_5_2011_12
    64     bool
    65     prompt "linaro-4.5-2011.12 (EXPERIMENTAL)"
    66     depends on CC_GCC_SHOW_LINARO
    67     select CC_GCC_4_5
    68 
    69 config CC_V_4_5_3
    70     bool
    71     prompt "4.5.3 (EXPERIMENTAL)"
    72     depends on EXPERIMENTAL
    73     select CC_GCC_4_5
    74 
    75 config CC_V_4_5_2
    76     bool
    77     prompt "4.5.2 (EXPERIMENTAL)"
    78     depends on EXPERIMENTAL
    79     select CC_GCC_4_5
    80 
    81 config CC_V_4_5_1
    82     bool
    83     prompt "4.5.1 (EXPERIMENTAL)"
    84     depends on EXPERIMENTAL
    85     select CC_GCC_4_5
    86 
    87 config CC_V_4_5_0
    88     bool
    89     prompt "4.5.0 (EXPERIMENTAL)"
    90     depends on EXPERIMENTAL
    91     select CC_GCC_4_5
    92 
    93 
    94 config CC_V_linaro_4_4_2011_02_0
    95     bool
    96     prompt "linaro-4.4-2011.02-0 (EXPERIMENTAL)"
    97     depends on CC_GCC_SHOW_LINARO
    98     select CC_GCC_4_4
    99 
   100 config CC_V_4_4_6
   101     bool
   102     prompt "4.4.6"
   103     select CC_GCC_4_4
   104 
   105 config CC_V_4_4_5
   106     bool
   107     prompt "4.4.5"
   108     select CC_GCC_4_4
   109 
   110 config CC_V_4_4_4
   111     bool
   112     prompt "4.4.4"
   113     select CC_GCC_4_4
   114 
   115 config CC_V_4_4_3
   116     bool
   117     prompt "4.4.3"
   118     select CC_GCC_4_4
   119 
   120 config CC_V_4_4_2
   121     bool
   122     prompt "4.4.2"
   123     select CC_GCC_4_4
   124 
   125 config CC_V_4_4_1
   126     bool
   127     prompt "4.4.1"
   128     select CC_GCC_4_4
   129 
   130 config CC_V_4_4_0
   131     bool
   132     prompt "4.4.0"
   133     select CC_GCC_4_4
   134 
   135 config CC_V_4_3_6
   136     bool
   137     prompt "4.3.6"
   138     select CC_GCC_4_3
   139 
   140 config CC_V_4_3_5
   141     bool
   142     prompt "4.3.5"
   143     select CC_GCC_4_3
   144 
   145 config CC_V_4_3_4
   146     bool
   147     prompt "4.3.4"
   148     select CC_GCC_4_3
   149 
   150 config CC_V_4_3_3
   151     bool
   152     prompt "4.3.3"
   153     select CC_GCC_4_3
   154 
   155 config CC_V_4_3_2
   156     bool
   157     prompt "4.3.2"
   158     select CC_GCC_4_3
   159 
   160 config CC_V_4_3_1
   161     bool
   162     prompt "4.3.1"
   163     select CC_GCC_4_3
   164 
   165 config CC_V_4_2_4
   166     bool
   167     prompt "4.2.4"
   168     select CC_GCC_4_2
   169 
   170 config CC_V_4_2_3
   171     bool
   172     prompt "4.2.3 (OBSOLETE)"
   173     select CC_GCC_4_2
   174     depends on OBSOLETE
   175 
   176 config CC_V_4_2_2
   177     bool
   178     prompt "4.2.2"
   179     select CC_GCC_4_2
   180 
   181 config CC_V_4_2_1
   182     bool
   183     prompt "4.2.1 (OBSOLETE)"
   184     select CC_GCC_4_2
   185     depends on OBSOLETE
   186 
   187 config CC_V_4_2_0
   188     bool
   189     prompt "4.2.0 (OBSOLETE)"
   190     select CC_GCC_4_2
   191     depends on OBSOLETE
   192 
   193 config CC_V_4_1_2
   194     bool
   195     prompt "4.1.2 (OBSOLETE)"
   196     depends on OBSOLETE
   197 
   198 config CC_V_4_0_4
   199     bool
   200     prompt "4.0.4 (OBSOLETE)"
   201     depends on OBSOLETE
   202 
   203 config CC_V_3_4_6
   204     bool
   205     prompt "3.4.6 (OBSOLETE)"
   206     depends on OBSOLETE
   207 
   208 endchoice
   209 
   210 config CC_GCC_4_2
   211     bool
   212     select CC_GCC_4_2_or_later
   213 
   214 config CC_GCC_4_2_or_later
   215     bool
   216 
   217 config CC_GCC_4_3
   218     bool
   219     select CC_GCC_4_3_or_later
   220     select CC_GCC_USE_GMP_MPFR
   221     select CC_GCC_HAS_PKGVERSION_BUGURL
   222 
   223 config CC_GCC_4_3_or_later
   224     bool
   225     select CC_GCC_4_2_or_later
   226 
   227 config CC_GCC_4_4
   228     bool
   229     select CC_GCC_4_4_or_later
   230     select CC_GCC_USE_GMP_MPFR
   231     select CC_GCC_HAS_GRAPHITE
   232     select CC_GCC_HAS_PKGVERSION_BUGURL
   233 
   234 config CC_GCC_4_4_or_later
   235     bool
   236     select CC_GCC_4_3_or_later
   237 
   238 config CC_GCC_4_5
   239     bool
   240     select CC_GCC_4_5_or_later
   241     select CC_GCC_USE_GMP_MPFR
   242     select CC_GCC_USE_MPC
   243     select CC_GCC_HAS_GRAPHITE
   244     select CC_GCC_HAS_LTO
   245     select CC_GCC_HAS_PKGVERSION_BUGURL
   246     select CC_GCC_HAS_BUILD_ID
   247 
   248 config CC_GCC_4_5_or_later
   249     bool
   250     select CC_GCC_4_4_or_later
   251 
   252 config CC_GCC_4_6
   253     bool
   254     select CC_GCC_4_6_or_later
   255     select CC_GCC_USE_GMP_MPFR
   256     select CC_GCC_USE_MPC
   257     select CC_GCC_HAS_GRAPHITE
   258     select CC_GCC_HAS_LTO
   259     select CC_GCC_HAS_PKGVERSION_BUGURL
   260     select CC_GCC_HAS_BUILD_ID
   261 
   262 config CC_GCC_4_6_or_later
   263     bool
   264     select CC_GCC_4_5_or_later
   265 
   266 config CC_GCC_HAS_GRAPHITE
   267     bool
   268 
   269 # The way LTO works is a bit twisted.
   270 # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
   271 # Basically:
   272 #   - if binutils has plugins: LTO is handled by ld/gold by loading
   273 #     the plugin when linking
   274 #   - if binutils does not have plugins: LTO is handled by collect2
   275 # In any case, LTO support does not depend on plugins, but takes
   276 # advantage of it
   277 config CC_GCC_HAS_LTO
   278     bool
   279 
   280 config CC_GCC_HAS_PKGVERSION_BUGURL
   281     bool
   282 
   283 config CC_GCC_HAS_BUILD_ID
   284     bool
   285 
   286 # For the upcoming 4.7 ?
   287 # None have linker-hash-style support for now...
   288 config CC_GCC_HAS_LNK_HASH_STYLE
   289     bool
   290 
   291 # Only enable gcc's support for plugins if binutils has it as well
   292 # They are usefull only when doing LTO, but it does no harm enabling
   293 # them even without LTO.
   294 config CC_GCC_ENABLE_PLUGINS
   295     bool
   296     depends on BINUTILS_PLUGINS
   297     depends on ! STATIC_TOOLCHAIN
   298     default y
   299 
   300 # If binutils installs gold, enable support for gold in gcc
   301 config CC_GCC_GOLD
   302     bool
   303     depends on BINUTILS_GOLD_INSTALLED
   304     default y
   305 
   306 config CC_GCC_USE_GMP_MPFR
   307     bool
   308     select GMP_NEEDED
   309     select MPFR_NEEDED
   310 
   311 config CC_GCC_USE_PPL_CLOOG
   312     bool
   313     select PPL_NEEDED
   314     select CLOOG_NEEDED
   315 
   316 config CC_GCC_USE_MPC
   317     bool
   318     select MPC_NEEDED
   319 
   320 config CC_GCC_USE_LIBELF
   321     bool
   322     select LIBELF_NEEDED
   323 
   324 config CC_VERSION
   325     string
   326 # Don't remove next line
   327 # CT_INSERT_VERSION_STRING_BELOW
   328     default "linaro-4.6-2011.12" if CC_V_linaro_4_6_2011_12
   329     default "4.6.2" if CC_V_4_6_2
   330     default "4.6.1" if CC_V_4_6_1
   331     default "4.6.0" if CC_V_4_6_0
   332     default "linaro-4.5-2011.12" if CC_V_linaro_4_5_2011_12
   333     default "4.5.3" if CC_V_4_5_3
   334     default "4.5.2" if CC_V_4_5_2
   335     default "4.5.1" if CC_V_4_5_1
   336     default "4.5.0" if CC_V_4_5_0
   337     default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0
   338     default "4.4.6" if CC_V_4_4_6
   339     default "4.4.5" if CC_V_4_4_5
   340     default "4.4.4" if CC_V_4_4_4
   341     default "4.4.3" if CC_V_4_4_3
   342     default "4.4.2" if CC_V_4_4_2
   343     default "4.4.1" if CC_V_4_4_1
   344     default "4.4.0" if CC_V_4_4_0
   345     default "4.3.6" if CC_V_4_3_6
   346     default "4.3.5" if CC_V_4_3_5
   347     default "4.3.4" if CC_V_4_3_4
   348     default "4.3.3" if CC_V_4_3_3
   349     default "4.3.2" if CC_V_4_3_2
   350     default "4.3.1" if CC_V_4_3_1
   351     default "4.3.0" if CC_V_4_3_0
   352     default "4.2.4" if CC_V_4_2_4
   353     default "4.2.3" if CC_V_4_2_3
   354     default "4.2.2" if CC_V_4_2_2
   355     default "4.2.1" if CC_V_4_2_1
   356     default "4.2.0" if CC_V_4_2_0
   357     default "4.1.2" if CC_V_4_1_2
   358     default "4.0.4" if CC_V_4_0_4
   359     default "3.4.6" if CC_V_3_4_6
   360 
   361 config CC_LANG_JAVA_USE_ECJ
   362     bool
   363     default y
   364     depends on CC_LANG_JAVA
   365     depends on CC_GCC_4_3_or_later
   366 
   367 # Fortran always requires GMP+MPFR, whatever the gcc version
   368 config CC_LANG_FORTRAN
   369     select CC_GCC_USE_GMP_MPFR