PR lto/60820
* varpool.c (varpool_remove_node): Do not alter decls when streaming.
From-SVN: r209389
+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
/* 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;