pkgsrc/cross/h8300-hms-gcc/patches/patch-aa
2010-02-14 21:30:50 +00:00

15 lines
598 B
Text

$NetBSD: patch-aa,v 1.2 2010/02/14 21:30:51 dholland Exp $
Patch out illegal C constructs.
--- ../gcc-3.1/include/obstack.h.orig 2001-03-14 19:44:38.000000000 +0000
+++ ../gcc-3.1/include/obstack.h
@@ -423,7 +423,7 @@ __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 **)(__o->next_free+=sizeof(void *)))[-1] = ((void *)datum); \
(void) 0; })
# define obstack_int_grow(OBSTACK,datum) \