config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jan 03 23:40:22 2011 +0100 (2011-01-03)
changeset 2267 7af68e6083aa
parent 2149 98b7806295cc
child 2287 61608c9365ab
permissions -rw-r--r--
libc-glibc: remove 2.3.6

This is an obsolete version which is no longer used by any sample (the only
user, the ia64 sample, has been removed).

It also makes the code path a bit complex, with twists just to accomodate
that version. Removing the version will make those twists go away, and
will ease commonalisation of glibc and eglibc in the future (hopefully!).

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_5_2
    23     bool
    24     prompt "4.5.2 (EXPERIMENTAL)"
    25     depends on EXPERIMENTAL
    26     select CC_GCC_4_5_or_later
    27 
    28 config CC_V_4_5_1
    29     bool
    30     prompt "4.5.1 (EXPERIMENTAL)"
    31     depends on EXPERIMENTAL
    32     select CC_GCC_4_5_or_later
    33 
    34 config CC_V_4_5_0
    35     bool
    36     prompt "4.5.0 (EXPERIMENTAL)"
    37     depends on EXPERIMENTAL
    38     select CC_GCC_4_5_or_later
    39 
    40 config CC_V_4_4_5
    41     bool
    42     prompt "4.4.5"
    43     select CC_GCC_4_4_or_later
    44 
    45 config CC_V_4_4_4
    46     bool
    47     prompt "4.4.4"
    48     select CC_GCC_4_4_or_later
    49 
    50 config CC_V_4_4_3
    51     bool
    52     prompt "4.4.3"
    53     select CC_GCC_4_4_or_later
    54 
    55 config CC_V_4_4_2
    56     bool
    57     prompt "4.4.2"
    58     select CC_GCC_4_4_or_later
    59 
    60 config CC_V_4_4_1
    61     bool
    62     prompt "4.4.1"
    63     select CC_GCC_4_4_or_later
    64 
    65 config CC_V_4_4_0
    66     bool
    67     prompt "4.4.0"
    68     select CC_GCC_4_4_or_later
    69 
    70 config CC_V_4_3_5
    71     bool
    72     prompt "4.3.5"
    73     select CC_GCC_4_3_or_later
    74 
    75 config CC_V_4_3_4
    76     bool
    77     prompt "4.3.4"
    78     select CC_GCC_4_3_or_later
    79 
    80 config CC_V_4_3_3
    81     bool
    82     prompt "4.3.3"
    83     select CC_GCC_4_3_or_later
    84 
    85 config CC_V_4_3_2
    86     bool
    87     prompt "4.3.2"
    88     select CC_GCC_4_3_or_later
    89 
    90 config CC_V_4_3_1
    91     bool
    92     prompt "4.3.1"
    93     select CC_GCC_4_3_or_later
    94 
    95 config CC_V_4_2_4
    96     bool
    97     prompt "4.2.4"
    98     select CC_GCC_4_2_or_later
    99 
   100 config CC_V_4_2_3
   101     bool
   102     prompt "4.2.3 (OBSOLETE)"
   103     select CC_GCC_4_2_or_later
   104     depends on OBSOLETE
   105 
   106 config CC_V_4_2_2
   107     bool
   108     prompt "4.2.2"
   109     select CC_GCC_4_2_or_later
   110 
   111 config CC_V_4_2_1
   112     bool
   113     prompt "4.2.1 (OBSOLETE)"
   114     select CC_GCC_4_2_or_later
   115     depends on OBSOLETE
   116 
   117 config CC_V_4_2_0
   118     bool
   119     prompt "4.2.0 (OBSOLETE)"
   120     select CC_GCC_4_2_or_later
   121     depends on OBSOLETE
   122 
   123 config CC_V_4_1_2
   124     bool
   125     prompt "4.1.2 (OBSOLETE)"
   126     depends on OBSOLETE
   127 
   128 config CC_V_4_0_4
   129     bool
   130     prompt "4.0.4 (OBSOLETE)"
   131     depends on OBSOLETE
   132 
   133 config CC_V_3_4_6
   134     bool
   135     prompt "3.4.6 (OBSOLETE)"
   136     depends on OBSOLETE
   137 
   138 endchoice
   139 
   140 config CC_GCC_4_2_or_later
   141     bool
   142     default n
   143 
   144 config CC_GCC_4_3_or_later
   145     bool
   146     default n
   147     select CC_GCC_4_2_or_later
   148     select CC_GCC_USE_GMP_MPFR
   149 
   150 config CC_GCC_4_4_or_later
   151     bool
   152     default n
   153     select CC_GCC_4_3_or_later
   154     select CC_GCC_HAS_GRAPHITE
   155 
   156 config CC_GCC_4_5_or_later
   157     bool
   158     default n
   159     select CC_GCC_4_4_or_later
   160     select CC_GCC_USE_MPC
   161     select CC_GCC_HAS_LTO
   162 
   163 config CC_GCC_HAS_GRAPHITE
   164     bool
   165     default n
   166 
   167 config CC_GCC_HAS_LTO
   168     bool
   169     default n
   170 
   171 config CC_GCC_USE_GMP_MPFR
   172     bool
   173     default n
   174     select GMP_NEEDED
   175     select MPFR_NEEDED
   176 
   177 config CC_GCC_USE_PPL_CLOOG
   178     bool
   179     default n
   180     select PPL_NEEDED
   181     select CLOOG_NEEDED
   182 
   183 config CC_GCC_USE_MPC
   184     bool
   185     default n
   186     select MPC_NEEDED
   187 
   188 config CC_GCC_USE_LIBELF
   189     bool
   190     default n
   191     select LIBELF_NEEDED
   192 
   193 config CC_VERSION
   194     string
   195 # Don't remove next line
   196 # CT_INSERT_VERSION_STRING_BELOW
   197     default "4.5.2" if CC_V_4_5_2
   198     default "4.5.1" if CC_V_4_5_1
   199     default "4.5.0" if CC_V_4_5_0
   200     default "4.4.5" if CC_V_4_4_5
   201     default "4.4.4" if CC_V_4_4_4
   202     default "4.4.3" if CC_V_4_4_3
   203     default "4.4.2" if CC_V_4_4_2
   204     default "4.4.1" if CC_V_4_4_1
   205     default "4.4.0" if CC_V_4_4_0
   206     default "4.3.5" if CC_V_4_3_5
   207     default "4.3.4" if CC_V_4_3_4
   208     default "4.3.3" if CC_V_4_3_3
   209     default "4.3.2" if CC_V_4_3_2
   210     default "4.3.1" if CC_V_4_3_1
   211     default "4.3.0" if CC_V_4_3_0
   212     default "4.2.4" if CC_V_4_2_4
   213     default "4.2.3" if CC_V_4_2_3
   214     default "4.2.2" if CC_V_4_2_2
   215     default "4.2.1" if CC_V_4_2_1
   216     default "4.2.0" if CC_V_4_2_0
   217     default "4.1.2" if CC_V_4_1_2
   218     default "4.0.4" if CC_V_4_0_4
   219     default "3.4.6" if CC_V_3_4_6
   220 
   221 config CC_LANG_JAVA_USE_ECJ
   222     bool
   223     default y
   224     depends on CC_LANG_JAVA
   225     depends on CC_GCC_4_3_or_later
   226 
   227 config CC_PKGVERSION
   228     string
   229     prompt "gcc ID string"
   230     depends on CC_GCC_4_3_or_later
   231     default "crosstool-NG-${CT_VERSION}"
   232     help
   233       Specify a string that identifies your package. You may wish to include
   234       a build number or build date. This version string will be included in
   235       the output of gcc --version.
   236 
   237       This is passed to the configure flag --with-pkgversion.
   238 
   239 config CC_BUGURL
   240     string
   241     prompt "gcc bug URL"
   242     depends on CC_GCC_4_3_or_later
   243     default ""
   244     help
   245       Specify the URL that users should visit if they wish to report a bug.
   246 
   247 config CC_ENABLE_CXX_FLAGS
   248     string
   249     prompt "Flags to pass to --enable-cxx-flags"
   250     default ""
   251     help
   252       Enter here the value of the gcc's ./configure option --enable-cxx-flags.
   253       Leave empty if you don't know better.
   254       
   255       Note: just pass in the option _value_, that is only the part that goes
   256       after the '=' sign.
   257 
   258 config CC_CORE_EXTRA_CONFIG
   259     string
   260     prompt "Core gcc extra config"
   261     default ""
   262     help
   263       Extra flags to pass onto ./configure when configuring the core gcc.
   264       
   265       The core gcc is a stripped down, C-only compiler needed to build
   266       the C library. Kinda bootstrap gcc, if you wish.
   267 
   268 config CC_EXTRA_CONFIG
   269     string
   270     prompt "gcc extra config"
   271     default ""
   272     depends on ! BARE_METAL
   273     help
   274       Extra flags to pass onto ./configure when configuring gcc.