Hi

Suggestions? (may be some obscure option of gcc?)

From memory this is a similar problem that occurred when compiling gcc-3.2.3 with gcc 4.0, the fix for this was sent by Steve Underwood. I think the same changes (or similar) are needed to the gdb source.

Hope this helps, if you cant see what's going on reply and Ill have a look at the source.

Here is the patch Steve applied to the gcc source,

--- gcc-3.2.3/include/obstack.h 2001-03-15 03:44:38.000000000 +0800
+++ gcc-3.2.3.patched/include/obstack.h 2005-08-21 19:57:04.000000000 +0800
@@ -421,11 +421,12 @@
# define obstack_ptr_grow(OBSTACK,datum)                               \
__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) = ((void *)datum);                       \
+   __o->next_free += sizeof(void *);                                   \
   (void) 0; })

# define obstack_int_grow(OBSTACK,datum)                               \
__extension__                                                          \
({ struct obstack *__o = (OBSTACK);                                    \


Regards,

--
Peter Jansen
STS
Australian Antarctic Division

___________________________________________________________________________

   Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not 
the
intended recipient, you are notified that use or dissemination of this 
communication is
strictly prohibited by Commonwealth law. If you have received this transmission 
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 
3209 and
DELETE the message.
       Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________

Reply via email to