config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Apr 19 16:17:11 2009 +0000 (2009-04-19)
branchnewlib
changeset 1365 c4d124ed9f8e
parent 1162 31348b787bed
child 1319 d8e8cd26eae1
permissions -rw-r--r--
Update the newlib devel branch with stuf from /trunk.

-------- diffstat follows --------
/devel/newlib/configure | 8 4 4 0
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/cc/gcc.sh | 34 22 12 0 +
/devel/newlib/scripts/build/debug/300-gdb.sh | 52 45 7 0 +
/devel/newlib/scripts/build/libc/uClibc.sh | 6 3 3 0
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/crosstool-NG.sh.in | 20 18 2 0 +
/devel/newlib/scripts/functions | 44 34 10 0 +
/devel/newlib/patches/glibc/2_9/500-ppc-glibc-2.9-atomic.patch | 414 0 414 0 ----------
/devel/newlib/patches/glibc/2_9/140-regex-BZ9697.patch | 111 0 111 0 ---
/devel/newlib/patches/glibc/2_9/190-queue-header-updates.patch | 89 0 89 0 --
/devel/newlib/patches/glibc/2_9/370-hppa_glibc-2.7-hppa-nptl-carlos.patch | 249 0 249 0 ------
/devel/newlib/patches/glibc/2_9/450-alpha-glibc-2.5-no-page-header.patch | 32 0 32 0 -
/devel/newlib/patches/glibc/2_9/330-2.3.3-china.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/270-ldbl-nexttowardf.patch | 68 0 68 0 --
/devel/newlib/patches/glibc/2_9/410-2.9-fnmatch.patch | 64 0 64 0 --
/devel/newlib/patches/glibc/2_9/340-new-valencian-locale.patch | 120 0 120 0 ---
/devel/newlib/patches/glibc/2_9/350-2.4-undefine-__i686.patch | 47 0 47 0 -
/devel/newlib/patches/glibc/2_9/160-i386-x86_64-revert-clone-cfi.patch | 53 0 53 0 -
/devel/newlib/patches/glibc/2_9/150-regex-BZ697.patch | 28 0 28 0 -
/devel/newlib/patches/glibc/2_9/420-dont-build-timezone.patch | 19 0 19 0 -
/devel/newlib/patches/glibc/2_9/290-no-inline-gmon.patch | 38 0 38 0 -
/devel/newlib/patches/glibc/2_9/280-section-comments.patch | 29 0 29 0 -
/devel/newlib/patches/glibc/2_9/180-math-tests.patch | 72 0 72 0 --
/devel/newlib/patches/glibc/2_9/250-resolv-dynamic.patch | 44 0 44 0 -
/devel/newlib/patches/glibc/2_9/120-_nss_dns_gethostbyaddr2_r-check-and-adjust-the-buffer-alignment.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/300-2.9-check_native-headers.patch | 22 0 22 0 -
/devel/newlib/patches/glibc/2_9/130-add_prio-macros.patch | 26 0 26 0 -
/devel/newlib/patches/glibc/2_9/310-2.3.6-fix-pr631.patch | 50 0 50 0 -
/devel/newlib/patches/glibc/2_9/510-sh-no-asm-user-header.patch | 70 0 70 0 --
/devel/newlib/patches/glibc/2_9/260-fadvise64_64.patch | 30 0 30 0 -
/devel/newlib/patches/glibc/2_9/440-alpha-glibc-2.4-xstat.patch | 249 0 249 0 ------
/devel/newlib/patches/glibc/2_9/170-2.10-dns-no-gethostbyname4.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/230-2.3.3-localedef-fix-trampoline.patch | 74 0 74 0 --
/devel/newlib/patches/glibc/2_9/480-alpha-glibc-2.8-cache-shape.patch | 18 0 18 0 -
/devel/newlib/patches/glibc/2_9/360-2.8-nscd-one-fork.patch | 45 0 45 0 -
/devel/newlib/patches/glibc/2_9/210-2.9-strlen-hack.patch | 109 0 109 0 ---
/devel/newlib/patches/glibc/2_9/320-2.9-assume-pipe2.patch | 59 0 59 0 -
/devel/newlib/patches/glibc/2_9/100-ssp-compat.patch | 193 0 193 0 -----
/devel/newlib/patches/glibc/2_9/110-respect-env-CPPFLAGS.patch | 30 0 30 0 -
/devel/newlib/patches/glibc/2_9/220-manual-no-perl.patch | 29 0 29 0 -
/devel/newlib/patches/glibc/2_9/390-2.3.3_pre20040117-pt_pax.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/460-alpha-glibc-2.5-no-asm-elf-header.patch | 38 0 38 0 -
/devel/newlib/patches/glibc/2_9/400-tests-sandbox-libdl-paths.patch | 198 0 198 0 -----
/devel/newlib/patches/glibc/2_9/520-sh-no-asm-elf-header.patch | 27 0 27 0 -
/devel/newlib/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch | 23 0 23 0 -
/devel/newlib/patches/glibc/2_9/200-awk-in-C-locale.patch | 23 0 23 0 -
/devel/newlib/patches/glibc/2_9/430-2.7-cross-compile-nptl.patch | 57 0 57 0 -
/devel/newlib/patches/glibc/2_9/380-2.3.6-dl_execstack-PaX-support.patch | 71 0 71 0 --
/devel/newlib/patches/glibc/2_9/490-ptr-mangling.patch | 114 0 114 0 ---
/devel/newlib/patches/glibc/2_9/470-alpha-glibc-2.8-creat.patch | 19 0 19 0 -
/devel/newlib/patches/glibc/ports-2_9/100-arm_linux_tls.patch | 14 0 14 0 -
/devel/newlib/patches/uClibc/0.9.30.1/140-gnu89-inline.patch | 2 1 1 0
/devel/newlib/docs/known-issues.txt | 16 15 1 0 +
/devel/newlib/docs/overview.txt | 2 1 1 0
/devel/newlib/samples/armeb-unknown-linux-uclibc/uClibc-0.9.30.config | 243 0 243 0 ------
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 35 18 17 0 +
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 113 73 40 0 +--
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 91 61 30 0 +-
/devel/newlib/samples/x86_64-unknown-linux-uclibc/uClibc-0.9.30.config | 245 0 245 0 ------
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 96 63 33 0 +-
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 78 48 30 0 +-
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 103 67 36 0 +-
/devel/newlib/samples/mips-unknown-linux-uclibc/uClibc-0.9.30.config | 254 0 254 0 ------
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 77 54 23 0 +-
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/uClibc-0.9.30.config | 253 0 253 0 ------
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 84 57 27 0 +-
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/i586-geode-linux-uclibc/uClibc-0.9.30.config | 263 0 263 0 ------
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/arm-unknown-linux-uclibc/uClibc-0.9.30.config | 253 0 253 0 ------
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/powerpc-unknown-linux-uclibc/uClibc-0.9.30.config | 248 0 248 0 ------
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 77 54 23 0 +-
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 26 13 13 0
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 75 49 26 0 +-
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 94 63 31 0 +-
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 102 67 35 0 +-
/devel/newlib/config/kernel/linux.in | 87 46 41 0 +-
/devel/newlib/config/cc/gcc.in | 35 30 5 0 +
/devel/newlib/config/debug/gdb.in | 2 1 1 0
94 files changed, 1851 insertions(+), 5813 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@1162
   111
    prompt "4.3.3 (EXPERIMENTAL)"
yann@1162
   112
    depends on EXPERIMENTAL
yann@1162
   113
    select CC_GCC_4_3_or_later
yann@1162
   114
yann@1268
   115
config CC_V_4_4_0
yann@1268
   116
    bool
yann@1268
   117
    prompt "4.4.0 snapshot"
yann@1268
   118
    depends on EXPERIMENTAL
yann@1268
   119
    select CC_GCC_4_3_or_later
yann@1268
   120
    select CC_GCC_4_4_snapshot
yann@1268
   121
yann@448
   122
# CT_INSERT_VERSION_ABOVE
yann@448
   123
# Don't remove above line!
yann@448
   124
endchoice
yann@448
   125
yann@1268
   126
config CC_GCC_4_3_or_later
yann@1268
   127
    bool
yann@1268
   128
    default n
yann@1268
   129
    select GMP_MPFR
yann@1268
   130
yann@1268
   131
config CC_GCC_4_4_snapshot
yann@1268
   132
    bool
yann@1268
   133
    default n
yann@1268
   134
yann@1268
   135
config CC_GCC_4_4_snapshot_date
yann@1268
   136
    string
yann@1268
   137
    prompt "Snapshot date"
yann@1268
   138
    depends on CC_GCC_4_4_snapshot
yann@1268
   139
    help
yann@1268
   140
      Enter the snapshot date in the form YYYYMMDD.
yann@1268
   141
      Snapshots are made every friday, at around 22:30 GMT+1,
yann@1268
   142
      so look at your calendar to find a suitable date.
yann@1268
   143
      
yann@1268
   144
      Also, know that crosstool-NG does *not* carry any patch
yann@1268
   145
      for the gcc-4.4 snapshots. So, you may have to answer
yann@1268
   146
      'y' to CUSTOM_PATCH, and set CUSTOM_PATCH_DIR adequately.
yann@1268
   147
yann@448
   148
config CC_VERSION
yann@448
   149
    string
yann@448
   150
    default "3.2.3" if CC_V_3_2_3
yann@448
   151
    default "3.3.6" if CC_V_3_3_6
yann@448
   152
    default "3.4.6" if CC_V_3_4_6
yann@448
   153
    default "4.0.0" if CC_V_4_0_0
yann@448
   154
    default "4.0.1" if CC_V_4_0_1
yann@448
   155
    default "4.0.2" if CC_V_4_0_2
yann@448
   156
    default "4.0.3" if CC_V_4_0_3
yann@448
   157
    default "4.0.4" if CC_V_4_0_4
yann@448
   158
    default "4.1.0" if CC_V_4_1_0
yann@448
   159
    default "4.1.1" if CC_V_4_1_1
yann@448
   160
    default "4.1.2" if CC_V_4_1_2
yann@448
   161
    default "4.2.0" if CC_V_4_2_0
yann@448
   162
    default "4.2.1" if CC_V_4_2_1
yann@448
   163
    default "4.2.2" if CC_V_4_2_2
yann@448
   164
    default "4.2.3" if CC_V_4_2_3
yann@687
   165
    default "4.2.4" if CC_V_4_2_4
yann@550
   166
    default "4.3.0" if CC_V_4_3_0
yann@550
   167
    default "4.3.1" if CC_V_4_3_1
yann@874
   168
    default "4.3.2" if CC_V_4_3_2
yann@1162
   169
    default "4.3.3" if CC_V_4_3_3
yann@1268
   170
    default "4.4-" if CC_V_4_4_0
yann@448
   171
# CT_INSERT_VERSION_STRING_ABOVE
yann@448
   172
# Don't remove above line!
yann@448
   173
yann@448
   174
config CC_CXA_ATEXIT
yann@448
   175
    bool
yann@765
   176
    prompt "Use __cxa_atexit"
yann@765
   177
    default y
yann@850
   178
    depends on ! BARE_METAL
yann@448
   179
    help
yann@448
   180
      If you get the missing symbol "__cxa_atexit" when building C++ programs,
yann@448
   181
      you might want to try disabling this option.
yann@448
   182
yann@765
   183
choice
yann@765
   184
    bool
yann@765
   185
    prompt "Use sjlj for exceptions"
yann@765
   186
    default CC_SJLJ_EXCEPTIONS_CONFIGURE
yann@850
   187
    depends on ! BARE_METAL
yann@765
   188
yann@765
   189
# This config option is used nowhere in the code on purpose.
yann@765
   190
# It only serves as a choice entry to force neither using nor not using sjlj
yann@765
   191
config CC_SJLJ_EXCEPTIONS_CONFIGURE
yann@765
   192
    bool
yann@765
   193
    prompt "Let configure decide"
yann@765
   194
    help
yann@765
   195
      Let configure decide if setjmp/longjmp should be used to handle
yann@765
   196
      exceptions.
yann@765
   197
      
yann@765
   198
      Choose that if you trust configure to detect the correct settings.
yann@765
   199
      This is the default choice.
yann@765
   200
yann@765
   201
config CC_SJLJ_EXCEPTIONS_USE
yann@765
   202
    bool
yann@765
   203
    prompt "Force using sjlj"
yann@765
   204
    help
yann@765
   205
      Do use setjmp/longjmp for exceptions.
yann@765
   206
      This is gcc's --enable-sjlj-exceptions configure switch.
yann@765
   207
      
yann@765
   208
      Choose that if you want to use setjmp/longjmp to handle exceptions.
yann@765
   209
yann@765
   210
config CC_SJLJ_EXCEPTIONS_DONT_USE
yann@765
   211
    bool
yann@765
   212
    prompt "Force not using sjlj"
yann@765
   213
    help
yann@765
   214
      Do not use setjmp/longjmp for exceptions.
yann@765
   215
      This is gcc's --disable-sjlj-exceptions configure switch.
yann@765
   216
      
yann@765
   217
      Choose that if you want to not use setjmp/longjmp to handle exceptions.
yann@765
   218
yann@765
   219
endchoice
yann@765
   220
yann@448
   221
config CC_CORE_EXTRA_CONFIG
yann@448
   222
    string
yann@448
   223
    prompt "Core gcc extra config"
yann@448
   224
    default ""
yann@448
   225
    help
yann@448
   226
      Extra flags to pass onto ./configure when configuring the core gcc.
yann@448
   227
      
yann@448
   228
      The core gcc is a stripped down, C-only compiler needed to build
yann@448
   229
      the C library. Kinda bootstrap gcc, if you wish.
yann@448
   230
yann@448
   231
config CC_EXTRA_CONFIG
yann@448
   232
    string
yann@448
   233
    prompt "gcc extra config"
yann@448
   234
    default ""
yann@850
   235
    depends on ! BARE_METAL
yann@448
   236
    help
yann@448
   237
      Extra flags to pass onto ./configure when configuring gcc.
yann@466
   238
yann@545
   239
config CC_PKGVERSION
yann@545
   240
    string
yann@545
   241
    prompt "gcc ID string"
yann@545
   242
    depends on CC_GCC_4_3_or_later
yann@545
   243
    default "crosstool-NG-${CT_VERSION}"
yann@545
   244
    help
yann@545
   245
      Specify a string that identifies your package. You may wish to include
yann@545
   246
      a build number or build date. This version string will be included in
yann@545
   247
      the output of gcc --version.
yann@545
   248
yann@545
   249
      This is passed to the configure flag --with-pkgversion.
yann@545
   250
yann@545
   251
config CC_BUGURL
yann@545
   252
    string
yann@545
   253
    prompt "gcc bug URL"
yann@545
   254
    depends on CC_GCC_4_3_or_later
yann@545
   255
    default ""
yann@545
   256
    help
yann@545
   257
      Specify the URL that users should visit if they wish to report a bug.
yann@1129
   258
yann@1129
   259
config CC_LANG_JAVA_USE_ECJ
yann@1129
   260
    bool
yann@1129
   261
    default y
yann@1129
   262
    depends on CC_LANG_JAVA
yann@1129
   263
    depends on CC_GCC_4_3_or_later