config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 13 17:51:33 2009 +0200 (2009-09-13)
changeset 1534 d4ddf19a1968
parent 1485 d031a67fc494
child 1535 073d351bdcd3
permissions -rw-r--r--
config: re-order menu entries so that latest versions are at the top

It makes better sense to have latest versions at the top of the choice
entries.
     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 
    20 config CC_V_4_4_1
    21     bool
    22     prompt "4.4.1  (EXPERIMENTAL)"
    23     depends on EXPERIMENTAL
    24     select CC_GCC_4_3_or_later
    25     select CC_GCC_4_4_or_later
    26 
    27 config CC_V_4_4_0
    28     bool
    29     prompt "4.4.0 (EXPERIMENTAL)"
    30     depends on EXPERIMENTAL
    31     select CC_GCC_4_3_or_later
    32     select CC_GCC_4_4_or_later
    33 
    34 config CC_V_4_3_4
    35     bool
    36     prompt "4.3.4"
    37     select CC_GCC_4_3_or_later
    38 
    39 config CC_V_4_3_3
    40     bool
    41     prompt "4.3.3"
    42     select CC_GCC_4_3_or_later
    43 
    44 config CC_V_4_3_2
    45     bool
    46     prompt "4.3.2"
    47     select CC_GCC_4_3_or_later
    48 
    49 config CC_V_4_3_1
    50     bool
    51     prompt "4.3.1"
    52     select CC_GCC_4_3_or_later
    53 
    54 config CC_V_4_3_0
    55     bool
    56     prompt "4.3.0 (EXPERIMENTAL)"
    57     depends on EXPERIMENTAL
    58     select CC_GCC_4_3_or_later
    59 
    60 config CC_V_4_2_4
    61     bool
    62     prompt "4.2.4"
    63 
    64 config CC_V_4_2_3
    65     bool
    66     prompt "4.2.3"
    67 
    68 config CC_V_4_2_2
    69     bool
    70     prompt "4.2.2"
    71 
    72 config CC_V_4_2_1
    73     bool
    74     prompt "4.2.1"
    75 
    76 config CC_V_4_2_0
    77     bool
    78     prompt "4.2.0"
    79 
    80 config CC_V_4_1_2
    81     bool
    82     prompt "4.1.2"
    83 
    84 config CC_V_4_1_1
    85     bool
    86     prompt "4.1.1 (OBSOLETE)"
    87     depends on OBSOLETE
    88 
    89 config CC_V_4_1_0
    90     bool
    91     prompt "4.1.0 (OBSOLETE)"
    92     depends on OBSOLETE
    93 
    94 config CC_V_4_0_4
    95     bool
    96     prompt "4.0.4"
    97 
    98 config CC_V_4_0_3
    99     bool
   100     prompt "4.0.3 (OBSOLETE)"
   101     depends on OBSOLETE
   102 
   103 config CC_V_4_0_2
   104     bool
   105     prompt "4.0.2 (OBSOLETE)"
   106     depends on OBSOLETE
   107 
   108 config CC_V_4_0_1
   109     bool
   110     prompt "4.0.1 (OBSOLETE)"
   111     depends on OBSOLETE
   112 
   113 config CC_V_4_0_0
   114     bool
   115     prompt "4.0.0 (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 config CC_V_3_3_6
   124     bool
   125     prompt "3.3.6 (OBSOLETE)"
   126     depends on OBSOLETE
   127 
   128 config CC_V_3_2_3
   129     bool
   130     prompt "3.2.3 (OBSOLETE)"
   131     depends on OBSOLETE
   132 
   133 # CT_INSERT_VERSION_ABOVE
   134 # Don't remove above line!
   135 endchoice
   136 
   137 config CC_GCC_4_3_or_later
   138     bool
   139     default n
   140     select GMP_MPFR
   141 
   142 config CC_GCC_4_4_or_later
   143     bool
   144     default n
   145     select PPL_CLOOG_MPC
   146 
   147 config CC_VERSION
   148     string
   149     default "4.4.1" if CC_V_4_4_1
   150     default "4.4.0" if CC_V_4_4_0
   151     default "4.3.4" if CC_V_4_3_4
   152     default "4.3.3" if CC_V_4_3_3
   153     default "4.3.2" if CC_V_4_3_2
   154     default "4.3.1" if CC_V_4_3_1
   155     default "4.3.0" if CC_V_4_3_0
   156     default "4.2.4" if CC_V_4_2_4
   157     default "4.2.3" if CC_V_4_2_3
   158     default "4.2.2" if CC_V_4_2_2
   159     default "4.2.1" if CC_V_4_2_1
   160     default "4.2.0" if CC_V_4_2_0
   161     default "4.1.2" if CC_V_4_1_2
   162     default "4.1.1" if CC_V_4_1_1
   163     default "4.1.0" if CC_V_4_1_0
   164     default "4.0.4" if CC_V_4_0_4
   165     default "4.0.3" if CC_V_4_0_3
   166     default "4.0.2" if CC_V_4_0_2
   167     default "4.0.1" if CC_V_4_0_1
   168     default "4.0.0" if CC_V_4_0_0
   169     default "3.4.6" if CC_V_3_4_6
   170     default "3.3.6" if CC_V_3_3_6
   171     default "3.2.3" if CC_V_3_2_3
   172 # CT_INSERT_VERSION_STRING_ABOVE
   173 # Don't remove above line!
   174 
   175 config CC_CXA_ATEXIT
   176     bool
   177     prompt "Use __cxa_atexit"
   178     default y
   179     depends on ! BARE_METAL
   180     help
   181       If you get the missing symbol "__cxa_atexit" when building C++ programs,
   182       you might want to try disabling this option.
   183 
   184 choice
   185     bool
   186     prompt "Use sjlj for exceptions"
   187     default CC_SJLJ_EXCEPTIONS_CONFIGURE
   188     depends on ! BARE_METAL
   189 
   190 # This config option is used nowhere in the code on purpose.
   191 # It only serves as a choice entry to force neither using nor not using sjlj
   192 config CC_SJLJ_EXCEPTIONS_CONFIGURE
   193     bool
   194     prompt "Let configure decide"
   195     help
   196       Let configure decide if setjmp/longjmp should be used to handle
   197       exceptions.
   198       
   199       Choose that if you trust configure to detect the correct settings.
   200       This is the default choice.
   201 
   202 config CC_SJLJ_EXCEPTIONS_USE
   203     bool
   204     prompt "Force using sjlj"
   205     help
   206       Do use setjmp/longjmp for exceptions.
   207       This is gcc's --enable-sjlj-exceptions configure switch.
   208       
   209       Choose that if you want to use setjmp/longjmp to handle exceptions.
   210 
   211 config CC_SJLJ_EXCEPTIONS_DONT_USE
   212     bool
   213     prompt "Force not using sjlj"
   214     help
   215       Do not use setjmp/longjmp for exceptions.
   216       This is gcc's --disable-sjlj-exceptions configure switch.
   217       
   218       Choose that if you want to not use setjmp/longjmp to handle exceptions.
   219 
   220 endchoice
   221 
   222 config CC_ENABLE_CXX_FLAGS
   223     string
   224     prompt "Flags to pass to --enable-cxx-flags"
   225     default ""
   226     help
   227       Enter here the value of the gcc's ./configure option --enable-cxx-flags.
   228       Leave empty if you don't know better.
   229       
   230       Note: just pass in the option _value_, that is only the part that goes
   231       after the '=' sign.
   232 
   233 config CC_CORE_EXTRA_CONFIG
   234     string
   235     prompt "Core gcc extra config"
   236     default ""
   237     help
   238       Extra flags to pass onto ./configure when configuring the core gcc.
   239       
   240       The core gcc is a stripped down, C-only compiler needed to build
   241       the C library. Kinda bootstrap gcc, if you wish.
   242 
   243 config CC_EXTRA_CONFIG
   244     string
   245     prompt "gcc extra config"
   246     default ""
   247     depends on ! BARE_METAL
   248     help
   249       Extra flags to pass onto ./configure when configuring gcc.
   250 
   251 config CC_PKGVERSION
   252     string
   253     prompt "gcc ID string"
   254     depends on CC_GCC_4_3_or_later
   255     default "crosstool-NG-${CT_VERSION}"
   256     help
   257       Specify a string that identifies your package. You may wish to include
   258       a build number or build date. This version string will be included in
   259       the output of gcc --version.
   260 
   261       This is passed to the configure flag --with-pkgversion.
   262 
   263 config CC_BUGURL
   264     string
   265     prompt "gcc bug URL"
   266     depends on CC_GCC_4_3_or_later
   267     default ""
   268     help
   269       Specify the URL that users should visit if they wish to report a bug.
   270 
   271 config CC_LANG_JAVA_USE_ECJ
   272     bool
   273     default y
   274     depends on CC_LANG_JAVA
   275     depends on CC_GCC_4_3_or_later