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