config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 28 01:06:53 2011 +0200 (2011-03-28)
changeset 2366 78ea01560905
parent 2365 fa0f121e8357
child 2367 d4c9c0071bbb
permissions -rw-r--r--
cc/gcc: add linaro 4.6 pre-release

Before gcc 4.6 was released, Linaro has a pre-release available.
Include that version in the config list.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Compiler options
     2 
     3 config CC_gcc
     4     select CC_SUPPORT_CXX
     5     select CC_SUPPORT_FORTRAN
     6     select CC_SUPPORT_JAVA
     7     select CC_SUPPORT_ADA
     8     select CC_SUPPORT_OBJC
     9     select CC_SUPPORT_OBJCXX
    10     help
    11       gcc is the full-blown GNU compiler. This is what most people will choose.
    12       
    13       gcc supports many languages, a powerful code parser, optimised binary
    14       output, and lots of other features.
    15 
    16 choice
    17     bool
    18     prompt "gcc version"
    19 # Don't remove next line
    20 # CT_INSERT_VERSION_BELOW
    21 
    22 config CC_V_linaro_4_6_2011_03_0
    23     bool
    24     prompt "linaro-4.6-2011.03-0 (EXPERIMENTAL)"
    25     depends on EXPERIMENTAL
    26     select CC_GCC_4_6
    27 
    28 config CC_V_4_6_0
    29     bool
    30     prompt "4.6.0 (EXPERIMENTAL)"
    31     depends on EXPERIMENTAL
    32     select CC_GCC_4_6
    33 
    34 config CC_V_linaro_4_5_2011_03_0
    35     bool
    36     prompt "linaro-4.5-2011.03-0 (EXPERIMENTAL)"
    37     depends on EXPERIMENTAL
    38     select CC_GCC_4_5
    39 
    40 config CC_V_4_5_2
    41     bool
    42     prompt "4.5.2 (EXPERIMENTAL)"
    43     depends on EXPERIMENTAL
    44     select CC_GCC_4_5
    45 
    46 config CC_V_4_5_1
    47     bool
    48     prompt "4.5.1 (EXPERIMENTAL)"
    49     depends on EXPERIMENTAL
    50     select CC_GCC_4_5
    51 
    52 config CC_V_4_5_0
    53     bool
    54     prompt "4.5.0 (EXPERIMENTAL)"
    55     depends on EXPERIMENTAL
    56     select CC_GCC_4_5
    57 
    58 
    59 config CC_V_linaro_4_4_2011_02_0
    60     bool
    61     prompt "linaro-4.4-2011.02-0 (EXPERIMENTAL)"
    62     depends on EXPERIMENTAL
    63     select CC_GCC_4_4
    64 
    65 config CC_V_4_4_5
    66     bool
    67     prompt "4.4.5"
    68     select CC_GCC_4_4
    69 
    70 config CC_V_4_4_4
    71     bool
    72     prompt "4.4.4"
    73     select CC_GCC_4_4
    74 
    75 config CC_V_4_4_3
    76     bool
    77     prompt "4.4.3"
    78     select CC_GCC_4_4
    79 
    80 config CC_V_4_4_2
    81     bool
    82     prompt "4.4.2"
    83     select CC_GCC_4_4
    84 
    85 config CC_V_4_4_1
    86     bool
    87     prompt "4.4.1"
    88     select CC_GCC_4_4
    89 
    90 config CC_V_4_4_0
    91     bool
    92     prompt "4.4.0"
    93     select CC_GCC_4_4
    94 
    95 config CC_V_4_3_5
    96     bool
    97     prompt "4.3.5"
    98     select CC_GCC_4_3
    99 
   100 config CC_V_4_3_4
   101     bool
   102     prompt "4.3.4"
   103     select CC_GCC_4_3
   104 
   105 config CC_V_4_3_3
   106     bool
   107     prompt "4.3.3"
   108     select CC_GCC_4_3
   109 
   110 config CC_V_4_3_2
   111     bool
   112     prompt "4.3.2"
   113     select CC_GCC_4_3
   114 
   115 config CC_V_4_3_1
   116     bool
   117     prompt "4.3.1"
   118     select CC_GCC_4_3
   119 
   120 config CC_V_4_2_4
   121     bool
   122     prompt "4.2.4"
   123     select CC_GCC_4_2
   124 
   125 config CC_V_4_2_3
   126     bool
   127     prompt "4.2.3 (OBSOLETE)"
   128     select CC_GCC_4_2
   129     depends on OBSOLETE
   130 
   131 config CC_V_4_2_2
   132     bool
   133     prompt "4.2.2"
   134     select CC_GCC_4_2
   135 
   136 config CC_V_4_2_1
   137     bool
   138     prompt "4.2.1 (OBSOLETE)"
   139     select CC_GCC_4_2
   140     depends on OBSOLETE
   141 
   142 config CC_V_4_2_0
   143     bool
   144     prompt "4.2.0 (OBSOLETE)"
   145     select CC_GCC_4_2
   146     depends on OBSOLETE
   147 
   148 config CC_V_4_1_2
   149     bool
   150     prompt "4.1.2 (OBSOLETE)"
   151     depends on OBSOLETE
   152 
   153 config CC_V_4_0_4
   154     bool
   155     prompt "4.0.4 (OBSOLETE)"
   156     depends on OBSOLETE
   157 
   158 config CC_V_3_4_6
   159     bool
   160     prompt "3.4.6 (OBSOLETE)"
   161     depends on OBSOLETE
   162 
   163 endchoice
   164 
   165 config CC_GCC_4_2
   166     bool
   167     default n
   168     select CC_GCC_4_2_or_later
   169 
   170 config CC_GCC_4_2_or_later
   171     bool
   172     default n
   173 
   174 config CC_GCC_4_3
   175     bool
   176     default n
   177     select CC_GCC_4_3_or_later
   178     select CC_GCC_USE_GMP_MPFR
   179 
   180 config CC_GCC_4_3_or_later
   181     bool
   182     default n
   183     select CC_GCC_4_2_or_later
   184 
   185 config CC_GCC_4_4
   186     bool
   187     default n
   188     select CC_GCC_4_4_or_later
   189     select CC_GCC_USE_GMP_MPFR
   190     select CC_GCC_HAS_GRAPHITE
   191 
   192 config CC_GCC_4_4_or_later
   193     bool
   194     default n
   195     select CC_GCC_4_3_or_later
   196 
   197 config CC_GCC_4_5
   198     bool
   199     default n
   200     select CC_GCC_4_5_or_later
   201     select CC_GCC_USE_GMP_MPFR
   202     select CC_GCC_USE_MPC
   203     select CC_GCC_HAS_GRAPHITE
   204     select CC_GCC_HAS_LTO
   205 
   206 config CC_GCC_4_5_or_later
   207     bool
   208     default n
   209     select CC_GCC_4_4_or_later
   210 
   211 config CC_GCC_4_6
   212     bool
   213     default n
   214     select CC_GCC_4_6_or_later
   215     select CC_GCC_USE_GMP_MPFR
   216     select CC_GCC_USE_MPC
   217     select CC_GCC_HAS_GRAPHITE
   218     select CC_GCC_HAS_LTO
   219 
   220 config CC_GCC_4_6_or_later
   221     bool
   222     default n
   223     select CC_GCC_4_5_or_later
   224 
   225 config CC_GCC_HAS_GRAPHITE
   226     bool
   227     default n
   228 
   229 # The way LTO works is a bit twisted.
   230 # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
   231 # Basically:
   232 #   - if binutils has plugins: LTO is handled by ld/gold by loading
   233 #     the plugin when linking
   234 #   - if binutils does not have plugins: LTO is handled by collect2
   235 # In any case, LTO support does not depend on plugins, but takes
   236 # advantage of it
   237 config CC_GCC_HAS_LTO
   238     bool
   239     default n
   240 
   241 # Only enable gcc's support for plugins if binutils has it as well
   242 # They are usefull only when doing LTO, but it does no harm enabling
   243 # them even without LTO.
   244 config CC_GCC_ENABLE_PLUGINS
   245     bool
   246     depends on BINUTILS_PLUGINS
   247     depends on ! STATIC_TOOLCHAIN
   248     default y
   249 
   250 # If binutils installs gold, enable support for gold in gcc
   251 config CC_GCC_GOLD
   252     bool
   253     depends on BINUTILS_GOLD_INSTALLED
   254     default y
   255 
   256 config CC_GCC_USE_GMP_MPFR
   257     bool
   258     default n
   259     select GMP_NEEDED
   260     select MPFR_NEEDED
   261 
   262 config CC_GCC_USE_PPL_CLOOG
   263     bool
   264     default n
   265     select PPL_NEEDED
   266     select CLOOG_NEEDED
   267 
   268 config CC_GCC_USE_MPC
   269     bool
   270     default n
   271     select MPC_NEEDED
   272 
   273 config CC_GCC_USE_LIBELF
   274     bool
   275     default n
   276     select LIBELF_NEEDED
   277 
   278 config CC_VERSION
   279     string
   280 # Don't remove next line
   281 # CT_INSERT_VERSION_STRING_BELOW
   282     default "linaro-4.6-2011.03-0" if CC_V_linaro_4_6_2011_03_0
   283     default "4.6.0" if CC_V_4_6_0
   284     default "linaro-4.5-2011.03-0" if CC_V_linaro_4_5_2011_03_0
   285     default "4.5.2" if CC_V_4_5_2
   286     default "4.5.1" if CC_V_4_5_1
   287     default "4.5.0" if CC_V_4_5_0
   288     default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0
   289     default "4.4.5" if CC_V_4_4_5
   290     default "4.4.4" if CC_V_4_4_4
   291     default "4.4.3" if CC_V_4_4_3
   292     default "4.4.2" if CC_V_4_4_2
   293     default "4.4.1" if CC_V_4_4_1
   294     default "4.4.0" if CC_V_4_4_0
   295     default "4.3.5" if CC_V_4_3_5
   296     default "4.3.4" if CC_V_4_3_4
   297     default "4.3.3" if CC_V_4_3_3
   298     default "4.3.2" if CC_V_4_3_2
   299     default "4.3.1" if CC_V_4_3_1
   300     default "4.3.0" if CC_V_4_3_0
   301     default "4.2.4" if CC_V_4_2_4
   302     default "4.2.3" if CC_V_4_2_3
   303     default "4.2.2" if CC_V_4_2_2
   304     default "4.2.1" if CC_V_4_2_1
   305     default "4.2.0" if CC_V_4_2_0
   306     default "4.1.2" if CC_V_4_1_2
   307     default "4.0.4" if CC_V_4_0_4
   308     default "3.4.6" if CC_V_3_4_6
   309 
   310 config CC_LANG_JAVA_USE_ECJ
   311     bool
   312     default y
   313     depends on CC_LANG_JAVA
   314     depends on CC_GCC_4_3_or_later
   315 
   316 config CC_PKGVERSION
   317     string
   318     prompt "gcc ID string"
   319     depends on CC_GCC_4_3_or_later
   320     default "crosstool-NG-${CT_VERSION}"
   321     help
   322       Specify a string that identifies your package. You may wish to include
   323       a build number or build date. This version string will be included in
   324       the output of gcc --version.
   325 
   326       This is passed to the configure flag --with-pkgversion.
   327 
   328 config CC_BUGURL
   329     string
   330     prompt "gcc bug URL"
   331     depends on CC_GCC_4_3_or_later
   332     default ""
   333     help
   334       Specify the URL that users should visit if they wish to report a bug.
   335 
   336 config CC_ENABLE_CXX_FLAGS
   337     string
   338     prompt "Flags to pass to --enable-cxx-flags"
   339     default ""
   340     help
   341       Enter here the value of the gcc's ./configure option --enable-cxx-flags.
   342       Leave empty if you don't know better.
   343       
   344       Note: just pass in the option _value_, that is only the part that goes
   345       after the '=' sign.
   346 
   347 config CC_CORE_EXTRA_CONFIG
   348     string
   349     prompt "Core gcc extra config"
   350     default ""
   351     help
   352       Extra flags to pass onto ./configure when configuring the core gcc.
   353       
   354       The core gcc is a stripped down, C-only compiler needed to build
   355       the C library. Kinda bootstrap gcc, if you wish.
   356 
   357 config CC_EXTRA_CONFIG
   358     string
   359     prompt "gcc extra config"
   360     default ""
   361     depends on ! BARE_METAL
   362     help
   363       Extra flags to pass onto ./configure when configuring gcc.