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