mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-14 05:30:25 +08:00
re PR ipa/69589 (ICE in initialize_node_lattices, at ipa-cp.c:971)
PR lto/69589 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL. From-SVN: r234113
This commit is contained in:
parent
015f20e49a
commit
2b9c477e7c
@ -1,3 +1,8 @@
|
||||
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
PR lto/69589
|
||||
* tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
|
||||
|
||||
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
PR lto/69589
|
||||
|
@ -5473,8 +5473,13 @@ free_lang_data_in_decl (tree decl)
|
||||
|| (decl_function_context (decl) && !TREE_STATIC (decl)))
|
||||
DECL_INITIAL (decl) = NULL_TREE;
|
||||
}
|
||||
else if (TREE_CODE (decl) == TYPE_DECL
|
||||
|| TREE_CODE (decl) == FIELD_DECL)
|
||||
else if (TREE_CODE (decl) == TYPE_DECL)
|
||||
{
|
||||
DECL_VISIBILITY (decl) = VISIBILITY_DEFAULT;
|
||||
DECL_VISIBILITY_SPECIFIED (decl) = 0;
|
||||
DECL_INITIAL (decl) = NULL_TREE;
|
||||
}
|
||||
else if (TREE_CODE (decl) == FIELD_DECL)
|
||||
DECL_INITIAL (decl) = NULL_TREE;
|
||||
else if (TREE_CODE (decl) == TRANSLATION_UNIT_DECL
|
||||
&& DECL_INITIAL (decl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user