config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 23 18:41:59 2010 +0100 (2010-01-23)
changeset 1748 54bbdbf316f3
parent 1611 e2516bba8fe5
child 1752 2a0656d9c905
permissions -rw-r--r--
libc/uclibc: use CT_ARCH, in place of CT_KERNEL_ARCH

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