diff options
Diffstat (limited to 'cross/h8300-hms-gcc/patches/patch-aa')
-rw-r--r-- | cross/h8300-hms-gcc/patches/patch-aa | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cross/h8300-hms-gcc/patches/patch-aa b/cross/h8300-hms-gcc/patches/patch-aa new file mode 100644 index 00000000000..2374f5f8ff3 --- /dev/null +++ b/cross/h8300-hms-gcc/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1 2010/02/14 06:28:07 dholland Exp $ + +--- ../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) \ |