patches/glibc/2.3.3/glibc-2.3.3-allow-gcc-4.0-locale.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu May 17 16:22:51 2007 +0000 (2007-05-17)
changeset 96 aa1a9fbd6eb8
permissions -rw-r--r--
Debug facilities:
- add a framework to easily add new ones
- add gdb as a first debug facility
- add patches for gdb
After the kernel checked its installed headers, clean up the mess of .checked.* files.
Reorder scripts/crosstool.sh:
- dump the configuration early
- renice early
- get info about build system early, when setting up the environment
- when in cross or native, the host tools are those of the build system, and only in this case
- elapsed time calculations moved to scripts/functions
Remove handling of the color: it's gone once and for all.
Update tools/addToolVersion.sh:
- handle debug facilities
- commonalise some code
- remove dead tools (cygwin, tcc)
Point to my address for bug reports.
yann@1
     1
--- glibc-2.3.3/locale/weight.h.old	2003-06-11 14:52:12.000000000 -0700
yann@1
     2
+++ glibc-2.3.3/locale/weight.h	2005-03-15 12:05:37.000000000 -0800
yann@1
     3
@@ -18,8 +18,14 @@
yann@1
     4
    02111-1307 USA.  */
yann@1
     5
 
yann@1
     6
 /* Find index of weight.  */
yann@1
     7
+#if __GNUC__ >= 4
yann@1
     8
+auto inline int32_t
yann@1
     9
+#else
yann@1
    10
 static inline int32_t
yann@1
    11
+#endif
yann@1
    12
+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
yann@1
    13
 __attribute ((always_inline))
yann@1
    14
+#endif
yann@1
    15
 findidx (const unsigned char **cpp)
yann@1
    16
 {
yann@1
    17
   int_fast32_t i = table[*(*cpp)++];
yann@1
    18
--- glibc-2.3.3/locale/weightwc.h.old	2003-06-13 13:44:58.000000000 -0700
yann@1
    19
+++ glibc-2.3.3/locale/weightwc.h	2005-03-15 12:06:46.000000000 -0800
yann@1
    20
@@ -18,8 +18,14 @@
yann@1
    21
    02111-1307 USA.  */
yann@1
    22
 
yann@1
    23
 /* Find index of weight.  */
yann@1
    24
+#if __GNUC__ >= 4
yann@1
    25
+auto inline int32_t
yann@1
    26
+#else
yann@1
    27
 static inline int32_t
yann@1
    28
+#endif
yann@1
    29
+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
yann@1
    30
 __attribute ((always_inline))
yann@1
    31
+#endif
yann@1
    32
 findidx (const wint_t **cpp)
yann@1
    33
 {
yann@1
    34
   int32_t i;