patches/glibc/2.1.3/glibc-2.1.3-allow-gcc-3.4-locale.patch
changeset 330 447b203edc2e
parent 329 419d959441ed
child 331 0c05f9ea3254
     1.1 --- a/patches/glibc/2.1.3/glibc-2.1.3-allow-gcc-3.4-locale.patch	Tue Aug 14 19:32:22 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,33 +0,0 @@
     1.4 -programs/locfile.c: In function `locfile_read':
     1.5 -programs/locfile.c:863: error: label at end of compound statement
     1.6 -make[2]: *** [/home/dank/wk/crosstool-0.28-rc4h/build/i686-unknown-linux-gnu/gcc-3.4.0-20040406-glibc-2.1.3/build-glibc/locale/locfile.o] Error 1
     1.7 -make[2]: Leaving directory `/home/dank/wk/crosstool-0.28-rc4h/build/i686-unknown-linux-gnu/gcc-3.4.0-20040406-glibc-2.1.3/glibc-2.1.3/locale'
     1.8 -
     1.9 -programs/locale.c: In function `print_item':
    1.10 -programs/locale.c:666: error: label at end of compound statement
    1.11 -make[2]: *** [/home/dank/wk/crosstool-0.28-rc4h/build/i686-unknown-linux-gnu/gcc-3.4.0-20040406-glibc-2.1.3/build-glibc/locale/locale.o] Error 1
    1.12 -make[2]: Leaving directory `/home/dank/wk/crosstool-0.28-rc4h/build/i686-unknown-linux-gnu/gcc-3.4.0-20040406-glibc-2.1.3/glibc-2.1.3/locale'
    1.13 -
    1.14 -
    1.15 -Mechanical changes to quiet the errors.
    1.16 -
    1.17 ---- glibc-2.1.3/locale/programs/locfile.c.old	Sun Apr 11 20:03:52 2004
    1.18 -+++ glibc-2.1.3/locale/programs/locfile.c	Sun Apr 11 20:04:47 2004
    1.19 -@@ -860,6 +860,7 @@
    1.20 - 
    1.21 - 	    collate_end_weight (ldfile, result);
    1.22 - 	  illegal_weight:
    1.23 -+		;	/* gcc-3.4 requires a statement here */
    1.24 - 	  }
    1.25 - 	  continue;
    1.26 - 
    1.27 ---- glibc-2.1.3/locale/programs/locale.c.old	Sun Apr 11 20:08:48 2004
    1.28 -+++ glibc-2.1.3/locale/programs/locale.c	Sun Apr 11 20:09:04 2004
    1.29 -@@ -663,6 +663,7 @@
    1.30 - 	  }
    1.31 - 	  break;
    1.32 - 	default:
    1.33 -+		;       /* gcc-3.4 requires a statement here */
    1.34 - 	}
    1.35 -       putchar ('\n');
    1.36 -     }