Commit 6adda80b by Jan Hubicka Committed by Jan Hubicka

gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure that var decl is available.

	* gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
	that var decl is available.

From-SVN: r210902
parent aede2c10
2014-05-23 Jan Hubicka <hubicka@ucw.cz>
* gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
that var decl is available.
2014-05-23 Jan Hubicka <hubicka@ucw.cz>
* tree-core.h (tree_decl_with_vis): Replace comdat_group by
symtab_node pointer.
* tree.c (copy_node_stat): Be sure tonot copy
......
......@@ -114,7 +114,8 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
&& (vnode = varpool_get_node (from_decl)) != NULL
&& vnode->definition)
|| (flag_ltrans
&& symtab_get_node (from_decl)->in_other_partition))
&& (vnode = varpool_get_node (from_decl)) != NULL
&& vnode->in_other_partition))
return true;
/* We are folding reference from external vtable. The vtable may reffer
to a symbol keyed to other compilation unit. The other compilation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment