aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2018-11-01 14:03:28 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2018-11-01 13:03:28 +0000
commit6d912664f483fb6995240c043caa000a242e0bf8 (patch)
tree6bdfd03632c63e13ca2f188ce297b939179481be /gcc/tree.c
parent444cda74708a494cc814951fe29d4904cec4f7e2 (diff)
downloadgcc-6d912664f483fb6995240c043caa000a242e0bf8.zip
gcc-6d912664f483fb6995240c043caa000a242e0bf8.tar.gz
gcc-6d912664f483fb6995240c043caa000a242e0bf8.tar.bz2
tree.c (free_lang_data_in_decl): Free TREE_TYPE and alignment of TYPE_DECL.
* tree.c (free_lang_data_in_decl): Free TREE_TYPE and alignment of TYPE_DECL. * g++.dg/lto/pr84805_1.C: Update template. * g++.dg/lto/pr84805_0.C: Update template. * g++.dg/lto/pr84805_1b.C: Update template. * g++.dg/lto/pr84805_0b.C: Update template. From-SVN: r265722
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 472b608..069d62d 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5510,6 +5510,8 @@ free_lang_data_in_decl (tree decl, struct free_lang_data_d *fld)
DECL_VISIBILITY_SPECIFIED (decl) = 0;
DECL_INITIAL (decl) = NULL_TREE;
DECL_ORIGINAL_TYPE (decl) = NULL_TREE;
+ TREE_TYPE (decl) = void_type_node;
+ SET_DECL_ALIGN (decl, 0);
}
else if (TREE_CODE (decl) == FIELD_DECL)
{