config/cc/gcc.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Tue May 31 19:55:59 2011 +0200 (2011-05-31)
changeset 2486 328816f6e606
parent 2484 d1a8c2ae7946
child 2510 48f955c87081
permissions -rw-r--r--
gcc: add a CC_GCC_HAS_PKGVERSION_BUGURL option

This patch adds a blind option CC_GCC_HAS_PKGVERSION_BUGURL to test the support
of --with-pkgversion and --with-bugurl by GCC's configure.

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