Commit 7c46e07b by Jan Hubicka Committed by Jan Hubicka

varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try to access removed nodes.

	* varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
	to access removed nodes.

From-SVN: r215150
parent 412c4af7
2014-09-10 Jan Hubicka <hubicka@ucw.cz>
* varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
to access removed nodes.
2014-09-10 Jan Hubicka <hubicka@ucw.cz>
PR tree-optimization/63186
* ipa-split.c (test_nonssa_use): Skip nonforced labels.
(mark_nonssa_use): Likewise.
......@@ -316,6 +316,11 @@ varpool_node::ctor_useable_for_folding_p (void)
&& !real_node->lto_file_data)
return false;
/* Avoid attempts to load constructors that was not streamed. */
if (flag_ltrans && DECL_INITIAL (real_node->decl) == error_mark_node
&& real_node->body_removed)
return false;
/* Vtables are defined by their types and must match no matter of interposition
rules. */
if (DECL_VIRTUAL_P (decl))
......
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