head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.18 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.16 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.14 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.12 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.10 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.8 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.6 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.4 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.2 pkgsrc-2008Q2-base:1.2; locks; strict; comment @# @; 1.2 date 2008.06.23.20.34.21; author kristerw; state dead; branches; next 1.1; 1.1 date 2008.06.20.13.55.49; author joerg; state Exp; branches; next ; desc @@ 1.2 log @The crosspkgtools has not worked for a long time because of changes in the pkgsrc infrastructure. And the current infrastructure differs enough from how it looked when the crosspkgtools was made, so a somewhat different approach is needed. @ text @$NetBSD: patch-ae,v 1.1 2008/06/20 13:55:49 joerg Exp $ --- gdb/include/obstack.h.orig 2003-04-17 17:37:14.000000000 +0200 +++ gdb/include/obstack.h @@@@ -417,14 +417,12 @@@@ __extension__ \ /* These assume that the obstack alignment is good enough for pointers or ints, and that the data added so far to the current object shares that much alignment. */ - # define obstack_ptr_grow(OBSTACK,datum) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ _obstack_newchunk (__o, sizeof (void *)); \ - *((void **)__o->next_free)++ = ((void *)datum); \ - (void) 0; }) + obstack_ptr_grow_fast (__o, datum); }) # define obstack_int_grow(OBSTACK,datum) \ __extension__ \ @@@@ -434,7 +432,12 @@@@ __extension__ \ *((int *)__o->next_free)++ = ((int)datum); \ (void) 0; }) -# define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr) +# define obstack_ptr_grow_fast(OBSTACK,aptr) \ +__extension__ \ +({ struct obstack *__o1 = (OBSTACK); \ + *(const void **) __o1->next_free = (aptr); \ + __o1->next_free += sizeof (const void *); \ + (void) 0; }) # define obstack_int_grow_fast(h,aint) (*((int *) (h)->next_free)++ = (int) aint) # define obstack_blank(OBSTACK,length) \ @ 1.1 log @Try to make it at least compile. @ text @d1 1 a1 1 $NetBSD$ @