summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-14 11:26:13 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-14 11:26:13 +0000
commit742529a29cc4611116a7c9e88ed48f5093e2a0cf (patch)
treef0372c6e50786fd0e4975b91533b4caa16211ca3 /gcc/tree.c
parentfa0431fadad26c96f0b895eaf974ffea34e1f20f (diff)
downloadgcc-742529a29cc4611116a7c9e88ed48f5093e2a0cf.tar.gz
2011-12-14 Richard Guenther <rguenther@suse.de>
* tree.c (free_lang_data_in_type): Do not clear fields dependent on debuginfo level setting. (find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN. * tree.h (TYPE_STUB_DECL): Properly check that we access a type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index d62afe5c6cb..247c6013d85 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4521,9 +4521,6 @@ free_lang_data_in_type (tree type)
&& TREE_CODE (TYPE_CONTEXT (type)) != FUNCTION_DECL
&& TREE_CODE (TYPE_CONTEXT (type)) != NAMESPACE_DECL))
TYPE_CONTEXT (type) = NULL_TREE;
-
- if (debug_info_level < DINFO_LEVEL_TERSE)
- TYPE_STUB_DECL (type) = NULL_TREE;
}
@@ -4881,7 +4878,7 @@ find_decls_types_r (tree *tp, int *ws, void *data)
}
}
- fld_worklist_push (TREE_CHAIN (t), fld);
+ fld_worklist_push (TYPE_STUB_DECL (t), fld);
*ws = 0;
}
else if (TREE_CODE (t) == BLOCK)