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