patches/glibc/2.3.4/glibc-2.3.4-allow-gcc-4.0-iconvdata.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 See http://sources.redhat.com/ml/libc-hacker/2005-02/msg00000.html
     2 and http://www.mail-archive.com/pld-cvs-commit@pld-linux.org/msg00229.html
     3 
     4 Fixes
     5   In file included from jis0208.c:23:
     6   jis0208.h:32: error: array type has incomplete element type
     7 when building glibc with gcc-4.0
     8 The bug has been present since at least glibc-2.2.5.
     9 This patch applies cleanly to glibc-2.3.4
    10 
    11 --- /home/dank/downloads/glibc-2.3-20050307/iconvdata/jis0208.h	2003-06-11 14:40:42.000000000 -0700
    12 +++ glibc-2.3-20050307/iconvdata/jis0208.h	2005-03-13 20:55:01.784054760 -0800
    13 @@ -24,15 +24,6 @@
    14  #include <gconv.h>
    15  #include <stdint.h>
    16  
    17 -/* Conversion table.  */
    18 -extern const uint16_t __jis0208_to_ucs[];
    19 -
    20 -extern const char __jisx0208_from_ucs4_lat1[256][2];
    21 -extern const char __jisx0208_from_ucs4_greek[0xc1][2];
    22 -extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
    23 -extern const char __jisx0208_from_ucs_tab[][2];
    24 -
    25 -
    26  /* Struct for table with indeces in UCS mapping table.  */
    27  struct jisx0208_ucs_idx
    28  {
    29 @@ -42,6 +33,15 @@
    30  };
    31  
    32  
    33 +/* Conversion table.  */
    34 +extern const uint16_t __jis0208_to_ucs[];
    35 +
    36 +extern const char __jisx0208_from_ucs4_lat1[256][2];
    37 +extern const char __jisx0208_from_ucs4_greek[0xc1][2];
    38 +extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
    39 +extern const char __jisx0208_from_ucs_tab[][2];
    40 +
    41 +
    42  static inline uint32_t
    43  __attribute ((always_inline))
    44  jisx0208_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset)