patches/glibc/2.3.2/glibc-2.3.2-allow-gcc-3.5-msort.patch
changeset 330 447b203edc2e
parent 329 419d959441ed
child 331 0c05f9ea3254
     1.1 --- a/patches/glibc/2.3.2/glibc-2.3.2-allow-gcc-3.5-msort.patch	Tue Aug 14 19:32:22 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,46 +0,0 @@
     1.4 -http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/stdlib/msort.c.diff?r1=1.20&r2=1.21&cvsroot=glibc
     1.5 -
     1.6 -Fixes
     1.7 -
     1.8 -msort.c: In function `msort_with_tmp':
     1.9 -msort.c:59: error: invalid lvalue in increment
    1.10 -msort.c:59: error: invalid lvalue in increment
    1.11 -msort.c:64: error: invalid lvalue in increment
    1.12 -msort.c:64: error: invalid lvalue in increment
    1.13 -
    1.14 -when building with gcc-3.5.
    1.15 -
    1.16 -===================================================================
    1.17 -RCS file: /cvs/glibc/libc/stdlib/msort.c,v
    1.18 -retrieving revision 1.20
    1.19 -retrieving revision 1.21
    1.20 -diff -u -r1.20 -r1.21
    1.21 ---- libc/stdlib/msort.c	2002/09/24 04:20:57	1.20
    1.22 -+++ libc/stdlib/msort.c	2004/02/07 15:57:34	1.21
    1.23 -@@ -1,6 +1,6 @@
    1.24 - /* An alternative to qsort, with an identical interface.
    1.25 -    This file is part of the GNU C Library.
    1.26 --   Copyright (C) 1992,95-97,99,2000,01,02 Free Software Foundation, Inc.
    1.27 -+   Copyright (C) 1992,95-97,99,2000,01,02,04 Free Software Foundation, Inc.
    1.28 -    Written by Mike Haertel, September 1988.
    1.29 - 
    1.30 -    The GNU C Library is free software; you can redistribute it and/or
    1.31 -@@ -56,12 +56,16 @@
    1.32 - 	if ((*cmp) (b1, b2) <= 0)
    1.33 - 	  {
    1.34 - 	    --n1;
    1.35 --	    *((op_t *) tmp)++ = *((op_t *) b1)++;
    1.36 -+	    *((op_t *) tmp) = *((op_t *) b1);
    1.37 -+	    tmp += sizeof (op_t);
    1.38 -+	    b1 += sizeof (op_t);
    1.39 - 	  }
    1.40 - 	else
    1.41 - 	  {
    1.42 - 	    --n2;
    1.43 --	    *((op_t *) tmp)++ = *((op_t *) b2)++;
    1.44 -+	    *((op_t *) tmp) = *((op_t *) b2);
    1.45 -+	    tmp += sizeof (op_t);
    1.46 -+	    b2 += sizeof (op_t);
    1.47 - 	  }
    1.48 -       }
    1.49 -   else