config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 27 21:16:01 2009 +0000 (2009-05-27)
branchgcc-4.4
changeset 1393 b432bd628b10
parent 1320 6a7a047551ed
child 1442 e4bb05790f3f
child 1484 c5451809efdb
permissions -rw-r--r--
/devel/gcc-4.4:
- add gcc-4.4.0 patches, vampirised from the Gentoo patchset
- gcc-4.4.0 auto-selects and uses appropriate companion linraries

-------- diffstat follows --------
/devel/gcc-4.4/scripts/build/cc/gcc.sh | 20 18 2 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/280-freebsd.patch | 188 188 0 0 ++++++++++
/devel/gcc-4.4/patches/gcc/4.4.0/140-default-format-security.patch | 98 98 0 0 +++++
/devel/gcc-4.4/patches/gcc/4.4.0/290-freebsd.patch | 128 128 0 0 +++++++
/devel/gcc-4.4/patches/gcc/4.4.0/310-uclibc-conf.patch | 70 70 0 0 ++++
/devel/gcc-4.4/patches/gcc/4.4.0/240-libstdc++-pic.patch | 106 106 0 0 ++++++
/devel/gcc-4.4/patches/gcc/4.4.0/260-sh-libgcc-stacks.patch | 50 50 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/100-alpha-mieee-default.patch | 48 48 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/180-libgomp-no-werror.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/170-sparc64-bsd.patch | 58 58 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/200-libiberty.h-asprintf.patch | 30 30 0 0 ++
/devel/gcc-4.4/patches/gcc/4.4.0/220-libiberty-pic.patch | 22 22 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/110-trampolinewarn.patch | 54 54 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/160-netbsd-symbolic.patch | 22 22 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/190-flatten-switch-stmt-00.patch | 48 48 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/150-default-fortify-source.patch | 52 52 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/340-libmudflap-susv3-legacy.patch | 96 96 0 0 +++++
/devel/gcc-4.4/patches/gcc/4.4.0/120-java-nomulti.patch | 92 92 0 0 +++++
/devel/gcc-4.4/patches/gcc/4.4.0/270-sh-pr24836.patch | 48 48 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/330-c99-snprintf.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/230-superh-default-multilib.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/250-ia64-noteGNUstack.patch | 158 158 0 0 +++++++++
/devel/gcc-4.4/patches/gcc/4.4.0/300-pr40105.patch | 360 360 0 0 ++++++++++++++++++++
/devel/gcc-4.4/patches/gcc/4.4.0/210-arm-unbreak-armv4t.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/130-cross-compile.patch | 78 78 0 0 ++++
/devel/gcc-4.4/patches/gcc/4.4.0/320-missing-execinfo_h.patch | 24 24 0 0 +
/devel/gcc-4.4/config/cc/gcc.in | 1 1 0 0 +
27 files changed, 1945 insertions(+), 2 deletions(-)
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@448
    19
yann@448
    20
config CC_V_3_2_3
yann@448
    21
    bool
yann@448
    22
    prompt "3.2.3 (OBSOLETE)"
yann@448
    23
    depends on OBSOLETE
yann@448
    24
yann@448
    25
config CC_V_3_3_6
yann@448
    26
    bool
yann@448
    27
    prompt "3.3.6 (OBSOLETE)"
yann@448
    28
    depends on OBSOLETE
yann@448
    29
yann@448
    30
config CC_V_3_4_6
yann@448
    31
    bool
yann@448
    32
    prompt "3.4.6 (OBSOLETE)"
yann@448
    33
    depends on OBSOLETE
yann@448
    34
yann@448
    35
config CC_V_4_0_0
yann@448
    36
    bool
yann@448
    37
    prompt "4.0.0 (OBSOLETE)"
yann@448
    38
    depends on OBSOLETE
yann@448
    39
yann@448
    40
config CC_V_4_0_1
yann@448
    41
    bool
yann@448
    42
    prompt "4.0.1 (OBSOLETE)"
yann@448
    43
    depends on OBSOLETE
yann@448
    44
yann@448
    45
config CC_V_4_0_2
yann@448
    46
    bool
yann@448
    47
    prompt "4.0.2 (OBSOLETE)"
yann@448
    48
    depends on OBSOLETE
yann@448
    49
yann@448
    50
config CC_V_4_0_3
yann@448
    51
    bool
yann@448
    52
    prompt "4.0.3 (OBSOLETE)"
yann@448
    53
    depends on OBSOLETE
yann@448
    54
yann@448
    55
config CC_V_4_0_4
yann@448
    56
    bool
yann@448
    57
    prompt "4.0.4"
yann@448
    58
yann@448
    59
config CC_V_4_1_0
yann@448
    60
    bool
yann@448
    61
    prompt "4.1.0 (OBSOLETE)"
yann@448
    62
    depends on OBSOLETE
yann@448
    63
yann@448
    64
config CC_V_4_1_1
yann@448
    65
    bool
yann@448
    66
    prompt "4.1.1 (OBSOLETE)"
yann@448
    67
    depends on OBSOLETE
yann@448
    68
yann@448
    69
config CC_V_4_1_2
yann@448
    70
    bool
yann@448
    71
    prompt "4.1.2"
yann@448
    72
yann@448
    73
config CC_V_4_2_0
yann@448
    74
    bool
yann@448
    75
    prompt "4.2.0"
yann@448
    76
yann@448
    77
config CC_V_4_2_1
yann@448
    78
    bool
yann@448
    79
    prompt "4.2.1"
yann@448
    80
yann@448
    81
config CC_V_4_2_2
yann@448
    82
    bool
yann@448
    83
    prompt "4.2.2"
yann@448
    84
yann@448
    85
config CC_V_4_2_3
yann@448
    86
    bool
yann@551
    87
    prompt "4.2.3"
yann@448
    88
yann@687
    89
config CC_V_4_2_4
yann@687
    90
    bool
yann@687
    91
    prompt "4.2.4"
yann@687
    92
yann@550
    93
config CC_V_4_3_0
yann@550
    94
    bool
yann@550
    95
    prompt "4.3.0 (EXPERIMENTAL)"
yann@550
    96
    depends on EXPERIMENTAL
yann@550
    97
    select CC_GCC_4_3_or_later
yann@550
    98
yann@550
    99
config CC_V_4_3_1
yann@550
   100
    bool
yann@794
   101
    prompt "4.3.1"
yann@550
   102
    select CC_GCC_4_3_or_later
yann@550
   103
yann@874
   104
config CC_V_4_3_2
yann@874
   105
    bool
yann@881
   106
    prompt "4.3.2"
yann@874
   107
    select CC_GCC_4_3_or_later
yann@874
   108
yann@1162
   109
config CC_V_4_3_3
yann@1162
   110
    bool
yann@1319
   111
    prompt "4.3.3"
yann@1162
   112
    select CC_GCC_4_3_or_later
yann@1162
   113
yann@1268
   114
config CC_V_4_4_0
yann@1268
   115
    bool
yann@1320
   116
    prompt "4.4.0 (EXPERIMENTAL)"
yann@1268
   117
    depends on EXPERIMENTAL
yann@1268
   118
    select CC_GCC_4_3_or_later
yann@1320
   119
    select CC_GCC_4_4_or_later
yann@1268
   120
yann@448
   121
# CT_INSERT_VERSION_ABOVE
yann@448
   122
# Don't remove above line!
yann@448
   123
endchoice
yann@448
   124
yann@1268
   125
config CC_GCC_4_3_or_later
yann@1268
   126
    bool
yann@1268
   127
    default n
yann@1268
   128
    select GMP_MPFR
yann@1268
   129
yann@1320
   130
config CC_GCC_4_4_or_later
yann@1268
   131
    bool
yann@1268
   132
    default n
yann@1393
   133
    select PPL_CLOOG_MPC
yann@1268
   134
yann@448
   135
config CC_VERSION
yann@448
   136
    string
yann@448
   137
    default "3.2.3" if CC_V_3_2_3
yann@448
   138
    default "3.3.6" if CC_V_3_3_6
yann@448
   139
    default "3.4.6" if CC_V_3_4_6
yann@448
   140
    default "4.0.0" if CC_V_4_0_0
yann@448
   141
    default "4.0.1" if CC_V_4_0_1
yann@448
   142
    default "4.0.2" if CC_V_4_0_2
yann@448
   143
    default "4.0.3" if CC_V_4_0_3
yann@448
   144
    default "4.0.4" if CC_V_4_0_4
yann@448
   145
    default "4.1.0" if CC_V_4_1_0
yann@448
   146
    default "4.1.1" if CC_V_4_1_1
yann@448
   147
    default "4.1.2" if CC_V_4_1_2
yann@448
   148
    default "4.2.0" if CC_V_4_2_0
yann@448
   149
    default "4.2.1" if CC_V_4_2_1
yann@448
   150
    default "4.2.2" if CC_V_4_2_2
yann@448
   151
    default "4.2.3" if CC_V_4_2_3
yann@687
   152
    default "4.2.4" if CC_V_4_2_4
yann@550
   153
    default "4.3.0" if CC_V_4_3_0
yann@550
   154
    default "4.3.1" if CC_V_4_3_1
yann@874
   155
    default "4.3.2" if CC_V_4_3_2
yann@1162
   156
    default "4.3.3" if CC_V_4_3_3
yann@1320
   157
    default "4.4.0" if CC_V_4_4_0
yann@448
   158
# CT_INSERT_VERSION_STRING_ABOVE
yann@448
   159
# Don't remove above line!
yann@448
   160
yann@448
   161
config CC_CXA_ATEXIT
yann@448
   162
    bool
yann@765
   163
    prompt "Use __cxa_atexit"
yann@765
   164
    default y
yann@850
   165
    depends on ! BARE_METAL
yann@448
   166
    help
yann@448
   167
      If you get the missing symbol "__cxa_atexit" when building C++ programs,
yann@448
   168
      you might want to try disabling this option.
yann@448
   169
yann@765
   170
choice
yann@765
   171
    bool
yann@765
   172
    prompt "Use sjlj for exceptions"
yann@765
   173
    default CC_SJLJ_EXCEPTIONS_CONFIGURE
yann@850
   174
    depends on ! BARE_METAL
yann@765
   175
yann@765
   176
# This config option is used nowhere in the code on purpose.
yann@765
   177
# It only serves as a choice entry to force neither using nor not using sjlj
yann@765
   178
config CC_SJLJ_EXCEPTIONS_CONFIGURE
yann@765
   179
    bool
yann@765
   180
    prompt "Let configure decide"
yann@765
   181
    help
yann@765
   182
      Let configure decide if setjmp/longjmp should be used to handle
yann@765
   183
      exceptions.
yann@765
   184
      
yann@765
   185
      Choose that if you trust configure to detect the correct settings.
yann@765
   186
      This is the default choice.
yann@765
   187
yann@765
   188
config CC_SJLJ_EXCEPTIONS_USE
yann@765
   189
    bool
yann@765
   190
    prompt "Force using sjlj"
yann@765
   191
    help
yann@765
   192
      Do use setjmp/longjmp for exceptions.
yann@765
   193
      This is gcc's --enable-sjlj-exceptions configure switch.
yann@765
   194
      
yann@765
   195
      Choose that if you want to use setjmp/longjmp to handle exceptions.
yann@765
   196
yann@765
   197
config CC_SJLJ_EXCEPTIONS_DONT_USE
yann@765
   198
    bool
yann@765
   199
    prompt "Force not using sjlj"
yann@765
   200
    help
yann@765
   201
      Do not use setjmp/longjmp for exceptions.
yann@765
   202
      This is gcc's --disable-sjlj-exceptions configure switch.
yann@765
   203
      
yann@765
   204
      Choose that if you want to not use setjmp/longjmp to handle exceptions.
yann@765
   205
yann@765
   206
endchoice
yann@765
   207
yann@448
   208
config CC_CORE_EXTRA_CONFIG
yann@448
   209
    string
yann@448
   210
    prompt "Core gcc extra config"
yann@448
   211
    default ""
yann@448
   212
    help
yann@448
   213
      Extra flags to pass onto ./configure when configuring the core gcc.
yann@448
   214
      
yann@448
   215
      The core gcc is a stripped down, C-only compiler needed to build
yann@448
   216
      the C library. Kinda bootstrap gcc, if you wish.
yann@448
   217
yann@448
   218
config CC_EXTRA_CONFIG
yann@448
   219
    string
yann@448
   220
    prompt "gcc extra config"
yann@448
   221
    default ""
yann@850
   222
    depends on ! BARE_METAL
yann@448
   223
    help
yann@448
   224
      Extra flags to pass onto ./configure when configuring gcc.
yann@466
   225
yann@545
   226
config CC_PKGVERSION
yann@545
   227
    string
yann@545
   228
    prompt "gcc ID string"
yann@545
   229
    depends on CC_GCC_4_3_or_later
yann@545
   230
    default "crosstool-NG-${CT_VERSION}"
yann@545
   231
    help
yann@545
   232
      Specify a string that identifies your package. You may wish to include
yann@545
   233
      a build number or build date. This version string will be included in
yann@545
   234
      the output of gcc --version.
yann@545
   235
yann@545
   236
      This is passed to the configure flag --with-pkgversion.
yann@545
   237
yann@545
   238
config CC_BUGURL
yann@545
   239
    string
yann@545
   240
    prompt "gcc bug URL"
yann@545
   241
    depends on CC_GCC_4_3_or_later
yann@545
   242
    default ""
yann@545
   243
    help
yann@545
   244
      Specify the URL that users should visit if they wish to report a bug.
yann@1129
   245
yann@1129
   246
config CC_LANG_JAVA_USE_ECJ
yann@1129
   247
    bool
yann@1129
   248
    default y
yann@1129
   249
    depends on CC_LANG_JAVA
yann@1129
   250
    depends on CC_GCC_4_3_or_later