aboutsummaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-16 18:40:04 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-16 18:40:04 +0000
commit84a5a09932f24802120cbe2d183bf2c885e6784e (patch)
treef192d3cf50aa41cf6ecf303b7e5db1bd8ba19d98 /gcc/sdbout.c
parenteddea8e598983bee1efe7280be4cebc22ac324ae (diff)
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80761 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index a6dda215685..b93ab779712 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.