Update of /cvsroot/leaf/src/bering-uclibc/apps/buildenv/patches
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3290/patches

Added Files:
        gcc-obstack.h.patch 
Log Message:
allow to compile the buildenv gcc (3.3.x) with any gcc version
thx NiTr0 <[email protected]> who made us aware aware of this.

see also:
http://gcc.gnu.org/ml/gcc-help/2006-01/msg00026.html
and
http://mail-index.netbsd.org/netbsd-bugs/2006/01/22/0008.html


--- NEW FILE: gcc-obstack.h.patch ---
--- gcc-3.3.3.orig/include/obstack.h    2009-01-19 12:21:51.000000000 +0100
+++ gcc-3.3.3/include/obstack.h 2009-01-19 12:28:19.000000000 +0100
@@ -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; })
 
 # define obstack_int_grow(OBSTACK,datum)                               \


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to