1.1 --- a/patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-malloc.patch Tue Aug 14 19:32:22 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,48 +0,0 @@
1.4 -Fixes
1.5 -programs/ld-collate.c: In function 'obstack_int32_grow':
1.6 -programs/ld-collate.c:48: error: invalid lvalue in increment
1.7 -programs/ld-collate.c: In function 'obstack_int32_grow_fast':
1.8 -programs/ld-collate.c:57: error: invalid lvalue in increment
1.9 -
1.10 -Change taken by eyeball from version 1.20 at
1.11 -http://sourceware.org/cgi-bin/cvsweb.cgi/libc/malloc/obstack.h?cvsroot=glibc
1.12 -
1.13 ---- /home/dank/downloads/glibc-2.2.5/malloc/obstack.h 2001-07-05 21:55:35.000000000 -0700
1.14 -+++ glibc-2.2.5/malloc/obstack.h 2005-03-11 16:12:16.175812224 -0800
1.15 -@@ -423,22 +423,29 @@
1.16 - ({ struct obstack *__o = (OBSTACK); \
1.17 - if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
1.18 - _obstack_newchunk (__o, sizeof (void *)); \
1.19 -- *((void **)__o->next_free)++ = (datum); \
1.20 -- (void) 0; })
1.21 -+ obstack_ptr_grow_fast (__o, datum); })
1.22 -
1.23 - # define obstack_int_grow(OBSTACK,datum) \
1.24 - __extension__ \
1.25 - ({ struct obstack *__o = (OBSTACK); \
1.26 - if (__o->next_free + sizeof (int) > __o->chunk_limit) \
1.27 - _obstack_newchunk (__o, sizeof (int)); \
1.28 -- *((int *)__o->next_free)++ = (datum); \
1.29 -+ obstack_int_grow_fast (__o, datum); })
1.30 -+
1.31 -+# define obstack_ptr_grow_fast(OBSTACK,aptr) \
1.32 -+__extension__ \
1.33 -+({ struct obstack *__o1 = (OBSTACK); \
1.34 -+ *(const void **) __o1->next_free = (aptr); \
1.35 -+ __o1->next_free += sizeof (const void *); \
1.36 - (void) 0; })
1.37 -
1.38 --# define obstack_ptr_grow_fast(h,aptr) \
1.39 -- (*((void **) (h)->next_free)++ = (aptr))
1.40 -+# define obstack_int_grow_fast(OBSTACK,aint) \
1.41 -+__extension__ \
1.42 -+({ struct obstack *__o1 = (OBSTACK); \
1.43 -+ *(int *) __o1->next_free = (aint); \
1.44 -+ __o1->next_free += sizeof (int); \
1.45 -+ (void) 0; })
1.46 -
1.47 --# define obstack_int_grow_fast(h,aint) \
1.48 -- (*((int *) (h)->next_free)++ = (aint))
1.49 -
1.50 - # define obstack_blank(OBSTACK,length) \
1.51 - __extension__ \