yann@1: Fixes yann@1: programs/ld-collate.c: In function 'obstack_int32_grow': yann@1: programs/ld-collate.c:48: error: invalid lvalue in increment yann@1: programs/ld-collate.c: In function 'obstack_int32_grow_fast': yann@1: programs/ld-collate.c:57: error: invalid lvalue in increment yann@1: yann@1: Change taken by eyeball from version 1.20 at yann@1: http://sourceware.org/cgi-bin/cvsweb.cgi/libc/malloc/obstack.h?cvsroot=glibc yann@1: yann@1: --- /home/dank/downloads/glibc-2.2.5/malloc/obstack.h 2001-07-05 21:55:35.000000000 -0700 yann@1: +++ glibc-2.2.5/malloc/obstack.h 2005-03-11 16:12:16.175812224 -0800 yann@1: @@ -423,22 +423,29 @@ yann@1: ({ struct obstack *__o = (OBSTACK); \ yann@1: if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ yann@1: _obstack_newchunk (__o, sizeof (void *)); \ yann@1: - *((void **)__o->next_free)++ = (datum); \ yann@1: - (void) 0; }) yann@1: + obstack_ptr_grow_fast (__o, datum); }) yann@1: yann@1: # define obstack_int_grow(OBSTACK,datum) \ yann@1: __extension__ \ yann@1: ({ struct obstack *__o = (OBSTACK); \ yann@1: if (__o->next_free + sizeof (int) > __o->chunk_limit) \ yann@1: _obstack_newchunk (__o, sizeof (int)); \ yann@1: - *((int *)__o->next_free)++ = (datum); \ yann@1: + obstack_int_grow_fast (__o, datum); }) yann@1: + yann@1: +# define obstack_ptr_grow_fast(OBSTACK,aptr) \ yann@1: +__extension__ \ yann@1: +({ struct obstack *__o1 = (OBSTACK); \ yann@1: + *(const void **) __o1->next_free = (aptr); \ yann@1: + __o1->next_free += sizeof (const void *); \ yann@1: (void) 0; }) yann@1: yann@1: -# define obstack_ptr_grow_fast(h,aptr) \ yann@1: - (*((void **) (h)->next_free)++ = (aptr)) yann@1: +# define obstack_int_grow_fast(OBSTACK,aint) \ yann@1: +__extension__ \ yann@1: +({ struct obstack *__o1 = (OBSTACK); \ yann@1: + *(int *) __o1->next_free = (aint); \ yann@1: + __o1->next_free += sizeof (int); \ yann@1: + (void) 0; }) yann@1: yann@1: -# define obstack_int_grow_fast(h,aint) \ yann@1: - (*((int *) (h)->next_free)++ = (aint)) yann@1: yann@1: # define obstack_blank(OBSTACK,length) \ yann@1: __extension__ \