config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 28 18:55:40 2009 +0100 (2009-10-28)
changeset 1603 e0ef539e23d9
parent 1536 28dfc4fc15e9
child 1611 e2516bba8fe5
permissions -rw-r--r--
config: rip-out versions marked as OBSOLETE
     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_4_1
    23     bool
    24     prompt "4.4.1 (EXPERIMENTAL)"
    25     depends on EXPERIMENTAL
    26     select CC_GCC_4_3_or_later
    27     select CC_GCC_4_4_or_later
    28 
    29 config CC_V_4_4_0
    30     bool
    31     prompt "4.4.0 (EXPERIMENTAL)"
    32     depends on EXPERIMENTAL
    33     select CC_GCC_4_3_or_later
    34     select CC_GCC_4_4_or_later
    35 
    36 config CC_V_4_3_4
    37     bool
    38     prompt "4.3.4"
    39     select CC_GCC_4_3_or_later
    40 
    41 config CC_V_4_3_3
    42     bool
    43     prompt "4.3.3"
    44     select CC_GCC_4_3_or_later
    45 
    46 config CC_V_4_3_2
    47     bool
    48     prompt "4.3.2"
    49     select CC_GCC_4_3_or_later
    50 
    51 config CC_V_4_3_1
    52     bool
    53     prompt "4.3.1"
    54     select CC_GCC_4_3_or_later
    55 
    56 config CC_V_4_3_0
    57     bool
    58     prompt "4.3.0 (EXPERIMENTAL)"
    59     depends on EXPERIMENTAL
    60     select CC_GCC_4_3_or_later
    61 
    62 config CC_V_4_2_4
    63     bool
    64     prompt "4.2.4"
    65 
    66 config CC_V_4_2_3
    67     bool
    68     prompt "4.2.3"
    69 
    70 config CC_V_4_2_2
    71     bool
    72     prompt "4.2.2"
    73 
    74 config CC_V_4_2_1
    75     bool
    76     prompt "4.2.1"
    77 
    78 config CC_V_4_2_0
    79     bool
    80     prompt "4.2.0"
    81 
    82 config CC_V_4_1_2
    83     bool
    84     prompt "4.1.2"
    85 
    86 config CC_V_4_0_4
    87     bool
    88     prompt "4.0.4"
    89 
    90 config CC_V_3_4_6
    91     bool
    92     prompt "3.4.6 (OBSOLETE)"
    93     depends on OBSOLETE
    94 
    95 endchoice
    96 
    97 config CC_GCC_4_3_or_later
    98     bool
    99     default n
   100     select GMP_MPFR
   101 
   102 config CC_GCC_4_4_or_later
   103     bool
   104     default n
   105     select PPL_CLOOG_MPC
   106 
   107 config CC_VERSION
   108     string
   109 # Don't remove next line
   110 # CT_INSERT_VERSION_STRING_BELOW
   111     default "4.4.1" if CC_V_4_4_1
   112     default "4.4.0" if CC_V_4_4_0
   113     default "4.3.4" if CC_V_4_3_4
   114     default "4.3.3" if CC_V_4_3_3
   115     default "4.3.2" if CC_V_4_3_2
   116     default "4.3.1" if CC_V_4_3_1
   117     default "4.3.0" if CC_V_4_3_0
   118     default "4.2.4" if CC_V_4_2_4
   119     default "4.2.3" if CC_V_4_2_3
   120     default "4.2.2" if CC_V_4_2_2
   121     default "4.2.1" if CC_V_4_2_1
   122     default "4.2.0" if CC_V_4_2_0
   123     default "4.1.2" if CC_V_4_1_2
   124     default "4.0.4" if CC_V_4_0_4
   125     default "3.4.6" if CC_V_3_4_6
   126 
   127 config CC_CXA_ATEXIT
   128     bool
   129     prompt "Use __cxa_atexit"
   130     default y
   131     depends on ! BARE_METAL
   132     help
   133       If you get the missing symbol "__cxa_atexit" when building C++ programs,
   134       you might want to try disabling this option.
   135 
   136 choice
   137     bool
   138     prompt "Use sjlj for exceptions"
   139     default CC_SJLJ_EXCEPTIONS_CONFIGURE
   140     depends on ! BARE_METAL
   141 
   142 # This config option is used nowhere in the code on purpose.
   143 # It only serves as a choice entry to force neither using nor not using sjlj
   144 config CC_SJLJ_EXCEPTIONS_CONFIGURE
   145     bool
   146     prompt "Let configure decide"
   147     help
   148       Let configure decide if setjmp/longjmp should be used to handle
   149       exceptions.
   150       
   151       Choose that if you trust configure to detect the correct settings.
   152       This is the default choice.
   153 
   154 config CC_SJLJ_EXCEPTIONS_USE
   155     bool
   156     prompt "Force using sjlj"
   157     help
   158       Do use setjmp/longjmp for exceptions.
   159       This is gcc's --enable-sjlj-exceptions configure switch.
   160       
   161       Choose that if you want to use setjmp/longjmp to handle exceptions.
   162 
   163 config CC_SJLJ_EXCEPTIONS_DONT_USE
   164     bool
   165     prompt "Force not using sjlj"
   166     help
   167       Do not use setjmp/longjmp for exceptions.
   168       This is gcc's --disable-sjlj-exceptions configure switch.
   169       
   170       Choose that if you want to not use setjmp/longjmp to handle exceptions.
   171 
   172 endchoice
   173 
   174 config CC_ENABLE_CXX_FLAGS
   175     string
   176     prompt "Flags to pass to --enable-cxx-flags"
   177     default ""
   178     help
   179       Enter here the value of the gcc's ./configure option --enable-cxx-flags.
   180       Leave empty if you don't know better.
   181       
   182       Note: just pass in the option _value_, that is only the part that goes
   183       after the '=' sign.
   184 
   185 config CC_CORE_EXTRA_CONFIG
   186     string
   187     prompt "Core gcc extra config"
   188     default ""
   189     help
   190       Extra flags to pass onto ./configure when configuring the core gcc.
   191       
   192       The core gcc is a stripped down, C-only compiler needed to build
   193       the C library. Kinda bootstrap gcc, if you wish.
   194 
   195 config CC_EXTRA_CONFIG
   196     string
   197     prompt "gcc extra config"
   198     default ""
   199     depends on ! BARE_METAL
   200     help
   201       Extra flags to pass onto ./configure when configuring gcc.
   202 
   203 config CC_PKGVERSION
   204     string
   205     prompt "gcc ID string"
   206     depends on CC_GCC_4_3_or_later
   207     default "crosstool-NG-${CT_VERSION}"
   208     help
   209       Specify a string that identifies your package. You may wish to include
   210       a build number or build date. This version string will be included in
   211       the output of gcc --version.
   212 
   213       This is passed to the configure flag --with-pkgversion.
   214 
   215 config CC_BUGURL
   216     string
   217     prompt "gcc bug URL"
   218     depends on CC_GCC_4_3_or_later
   219     default ""
   220     help
   221       Specify the URL that users should visit if they wish to report a bug.
   222 
   223 config CC_LANG_JAVA_USE_ECJ
   224     bool
   225     default y
   226     depends on CC_LANG_JAVA
   227     depends on CC_GCC_4_3_or_later