summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-09 14:22:45 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-09 14:22:45 +0000
commit45ebb60b0d89017bf97f2901e999f368eedab4ca (patch)
treedc568f3ff3ed2b9ea61636d3368e960b9293e879 /gcc/tree.c
parent824a60c9f0f73ab5f919a86b58b75190446fcf7d (diff)
downloadgcc-45ebb60b0d89017bf97f2901e999f368eedab4ca.tar.gz
2010-07-09 Tom de Vries <tjvries@xs4all.nl>
* tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause. * gcc.dg/debug/dwarf2/pr31230.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161998 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 2ddd1d87fe4..cca171c8c3c 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -6072,16 +6072,14 @@ type_hash_canon (unsigned int hashcode, tree type)
/* See if the data pointed to by the type hash table is marked. We consider
it marked if the type is marked or if a debug type number or symbol
- table entry has been made for the type. This reduces the amount of
- debugging output and eliminates that dependency of the debug output on
- the number of garbage collections. */
+ table entry has been made for the type. */
static int
type_hash_marked_p (const void *p)
{
const_tree const type = ((const struct type_hash *) p)->type;
- return ggc_marked_p (type) || TYPE_SYMTAB_POINTER (type);
+ return ggc_marked_p (type);
}
static void