config/cc/gcc.in
author Arnaud Lacombe <lacombar@gmail.com>
Sun Aug 01 03:56:43 2010 +0200 (2010-08-01)
changeset 2061 5744ba6e8297
parent 2041 db17513ee7bf
child 2122 eb837be50f8f
permissions -rw-r--r--
cc/gcc: 4.5.1 is out!

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