Mail Archives: djgpp-workers/2004/04/16/14:41:33
I just applied this to the head; it will be needed for any gcc 3.4
releases (too late for 3.4.0, probably will be ok for 3.4.1).
2004-04-16 DJ Delorie <dj AT redhat DOT com>
* sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
TYPE_FIELDS.
(sdbout_finish): Don't free deferred_global_decls; it's GC'd.
Index: sdbout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sdbout.c,v
retrieving revision 1.89
diff -p -C2 -r1.89 sdbout.c
*** sdbout.c 1 Apr 2004 03:50:29 -0000 1.89
--- sdbout.c 16 Apr 2004 18:39:05 -0000
*************** sdbout_one_type (tree type)
*** 1187,1191 ****
if (TREE_CODE (type) == ENUMERAL_TYPE)
{
! for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
if (host_integerp (TREE_VALUE (tem), 0))
{
--- 1187,1191 ----
if (TREE_CODE (type) == ENUMERAL_TYPE)
{
! for (tem = TYPE_VALUES (type); tem; tem = TREE_CHAIN (tem))
if (host_integerp (TREE_VALUE (tem), 0))
{
*************** sdbout_finish (const char *main_filename
*** 1480,1485 ****
for (i = 0; i < VARRAY_ACTIVE_SIZE (deferred_global_decls); i++)
sdbout_symbol (VARRAY_TREE (deferred_global_decls, i), 0);
-
- VARRAY_FREE (deferred_global_decls);
}
--- 1480,1483 ----
- Raw text -