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