config/libc/glibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 31 17:49:27 2009 +0000 (2009-01-31)
changeset 1183 268544004e77
parent 922 3f0456891349
child 1260 777153645ab8
permissions -rw-r--r--
On 20090131.1659+0100, Vincent Sanders <vince@kyllikki.org> wrote:
[This]patch is a bit more involved. The patch addresses a gcc
regression in the 4.3 series (specifically this patch is against 4.3.2
which does *not* have a lot of other issues which affect kernel building)

GCC bug tracker has this issue as
#38453 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38453
#32044 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32044

comment 65 of #32044 has the fix being applied to gcc trunk as revision #142719

The attached patch is a backport to gcc 4.3.2 which allows this
version to be used to generate correct output for various ARM kernel
build (and indeed is teh correct answer in general).

/trunk/patches/gcc/4.3.2/360-fix-expensive-optimize.patch | 207 207 0 0 +++++++++++++++++++++
1 file changed, 207 insertions(+)
     1 # glibc options
     2 
     3 config LIBC_glibc
     4     select LIBC_SUPPORT_NPTL
     5     select LIBC_SUPPORT_LINUXTHREADS
     6     help
     7       The de-facto standard for Linux distributions.
     8       Feature-rich, but large...  Most usefull for desktop-like systems.
     9 
    10 choice
    11     bool
    12     prompt "glibc version"
    13 
    14 config LIBC_V_2_3_6
    15     bool
    16     prompt "2.3.6 (OBSOLETE)"
    17     depends on OBSOLETE
    18 
    19 config LIBC_V_2_5
    20     bool
    21     prompt "2.5"
    22 
    23 config LIBC_V_2_5_1
    24     bool
    25     prompt "2.5.1"
    26 
    27 config LIBC_V_2_6
    28     bool
    29     prompt "2.6"
    30 
    31 config LIBC_V_2_6_1
    32     bool
    33     prompt "2.6.1"
    34 
    35 config LIBC_V_2_7
    36     bool
    37     prompt "2.7"
    38 
    39 config LIBC_V_2_8
    40     bool
    41     prompt "2_8"
    42     select LIBC_GLIBC_2_8_or_later
    43 
    44 config LIBC_V_2_9
    45     bool
    46     prompt "2_9"
    47     select LIBC_GLIBC_2_8_or_later
    48 
    49 # CT_INSERT_VERSION_ABOVE
    50 # Don't remove above line!
    51 
    52 config LIBC_V_LATEST
    53     bool
    54     prompt "'latest' snapshot (EXPERIMENTAL)"
    55     depends on EXPERIMENTAL
    56 
    57 config LIBC_V_date
    58     bool
    59     prompt "<specific date> (EXPERIMENTAL)"
    60     depends on EXPERIMENTAL
    61 
    62 endchoice
    63 
    64 config LIBC_VERSION
    65     string
    66     prompt "Enter date (YYYYMMDD)" if LIBC_V_date
    67     default "latest" if LIBC_V_LATEST
    68     default "2.3.6" if LIBC_V_2_3_6
    69     default "2.4" if LIBC_V_2_4
    70     default "2.5" if LIBC_V_2_5
    71     default "2.5.1" if LIBC_V_2_5_1
    72     default "2.6" if LIBC_V_2_6
    73     default "2.6.1" if LIBC_V_2_6_1
    74     default "2.7" if LIBC_V_2_7
    75     default "2_8" if LIBC_V_2_8
    76     default "2_9" if LIBC_V_2_9
    77 # CT_INSERT_VERSION_STRING_ABOVE
    78 # Don't remove above line!
    79 
    80 config LIBC_GLIBC_2_8_or_later
    81     bool
    82     default n
    83 
    84 if LIBC_GLIBC_2_8_or_later
    85 
    86 config LIBC_GLIBC_latest_snapshot
    87     bool
    88     prompt "Use latest nightly snapshot"
    89     default n
    90     help
    91       Say 'y' to use the latest nightly snapshot.
    92       Not recommended, as the toolchain will not be reproducible.
    93 
    94 if ! LIBC_GLIBC_latest_snapshot
    95 
    96 comment "Using CVS checkout"
    97 
    98 config LIBC_GLIBC_CVS_date
    99     string
   100     prompt "checkout as of date"
   101     default ""
   102     help
   103       The date, in ISO-8601 format, at which to check out the repository.
   104 
   105 #config LIBC_GLIBC_CVS_CHECKOUT
   106 #    bool
   107 #    prompt "checkout instead of export"
   108 #    default n
   109 #    help
   110 #      Use checkout rather than export, so that you can later update
   111 #      the sources.
   112 #      Not recommended, as the toolchain could be non-reproducible.
   113 
   114 endif # ! LIBC_GLIBC_latest_snapshot
   115 
   116 endif # LIBC_GLIBC_2_8_or_later