diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-11 15:59:42 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-11 15:59:42 +0000 |
commit | 9abb7e57d606b2718c7829b873746bdecb10b51f (patch) | |
tree | 5a00831f10217363ca6f0423beee4d0e0c453a75 /gcc/tree.c | |
parent | f283d77f36ed51a045be22aefb73355abe96f6bb (diff) | |
download | gcc-9abb7e57d606b2718c7829b873746bdecb10b51f.tar.gz |
2011-03-11 Richard Guenther <rguenther@suse.de>
PR lto/48073
* tree.c (find_decls_types_r): Do not walk types only reachable
from IDENTIFIER_NODEs.
* g++.dg/lto/20110311-1_0.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170875 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index d923ac89a76..be469909995 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4822,7 +4822,8 @@ find_decls_types_r (tree *tp, int *ws, void *data) fld_worklist_push (BLOCK_ABSTRACT_ORIGIN (t), fld); } - fld_worklist_push (TREE_TYPE (t), fld); + if (TREE_CODE (t) != IDENTIFIER_NODE) + fld_worklist_push (TREE_TYPE (t), fld); return NULL_TREE; } |