diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-21 14:35:43 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-21 14:35:43 +0000 |
commit | 81a847ede95753312ffb5aa927a23895e1b756d6 (patch) | |
tree | 31d2707648b75e245c16df09a78879a825b6a7eb /gcc/tree.c | |
parent | d5c50c6d76a593a0eef3541709d60c0eafa8a599 (diff) | |
download | gcc-81a847ede95753312ffb5aa927a23895e1b756d6.tar.gz |
2011-04-21 Richard Guenther <rguenther@suse.de>
PR lto/48703
* tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
DECL_NAME.
* g++.dg/lto/pr48207-2_0.C: New testcase.
* g++.dg/lto/pr48207-3_0.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172830 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index d0c18b17ae2..b37b7f8a446 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4561,10 +4561,6 @@ free_lang_data_in_decl (tree decl) TREE_LANG_FLAG_5 (decl) = 0; TREE_LANG_FLAG_6 (decl) = 0; - /* Identifiers need not have a type. */ - if (DECL_NAME (decl)) - TREE_TYPE (DECL_NAME (decl)) = NULL_TREE; - free_lang_data_in_one_sizepos (&DECL_SIZE (decl)); free_lang_data_in_one_sizepos (&DECL_SIZE_UNIT (decl)); if (TREE_CODE (decl) == FIELD_DECL) |