[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

cvsup gcc4 patch



I tried ti build cvsup and it fails with following error:

read-rtl.c:662: error: invalid lvalue in increment

I have following patch to fix it and before releasing it I would be
thankful to get some comments on this patch:

@@ -423,7 +423,8 @@
 ({ 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) = ((void *)datum); \
+   __o->next_free += sizeof(void *); \
    (void) 0; })

This shuts up the compiler and builds the package successful.

		Adrian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]