config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Mar 26 22:00:05 2011 +0100 (2011-03-26)
changeset 2365 fa0f121e8357
parent 2363 bc2714299363
child 2366 78ea01560905
permissions -rw-r--r--
cc/gcc: add 4.6.0

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