Commit 006202e8 by Jan Hubicka Committed by Jan Hubicka

re PR lto/60820 (ice in ctor_for_folding, at varpool.c:291)


	PR lto/60820
	* varpool.c (varpool_remove_node): Do not alter decls when streaming.

From-SVN: r209389
parent e0a81db1
2014-04-14 Jan Hubicka <hubicka@ucw.cz>
PR lto/60820
* varpool.c (varpool_remove_node): Do not alter decls when streaming.
2014-04-14 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (examine_argument): Return bool. Return true if
......
......@@ -166,7 +166,9 @@ varpool_remove_node (varpool_node *node)
/* Because we remove references from external functions before final compilation,
we may end up removing useful constructors.
FIXME: We probably want to trace boundaries better. */
if ((init = ctor_for_folding (node->decl)) == error_mark_node)
if (cgraph_state == CGRAPH_LTO_STREAMING)
;
else if ((init = ctor_for_folding (node->decl)) == error_mark_node)
varpool_remove_initializer (node);
else
DECL_INITIAL (node->decl) = init;
......
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