summaryrefslogtreecommitdiff
path: root/cross/h8300-hms-gcc/patches/patch-aa
blob: 6767d560b2a1a928c206a00a59e0346317f2514f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$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)				\