From 2d49ce67973aa150ad56b47c7f5dc71fa1e02680 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 16 Apr 2004 14:40:04 -0400 Subject: sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not TYPE_FIELDS. * 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. From-SVN: r80761 --- gcc/sdbout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gcc/sdbout.c') diff --git a/gcc/sdbout.c b/gcc/sdbout.c index a6dda21..b93ab77 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -1186,7 +1186,7 @@ sdbout_one_type (tree type) if (TREE_CODE (type) == ENUMERAL_TYPE) { - for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem)) + for (tem = TYPE_VALUES (type); tem; tem = TREE_CHAIN (tem)) if (host_integerp (TREE_VALUE (tem), 0)) { PUT_SDB_DEF (IDENTIFIER_POINTER (TREE_PURPOSE (tem))); @@ -1479,8 +1479,6 @@ sdbout_finish (const char *main_filename ATTRIBUTE_UNUSED) 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); } /* Describe the beginning of an internal block within a function. -- cgit v1.1