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