Commit acd3f1c2 by Eric Botcazou Committed by Eric Botcazou

lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of variables…

lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of variables in the global contant pool.

	* lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
	variables in the global contant pool.

From-SVN: r194324
parent 54441a34
2012-12-08 Eric Botcazou <ebotcazou@adacore.com>
* lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
variables in the global contant pool.
2012-12-08 Steven Bosscher <steven@gcc.gnu.org>
PR rtl-optimization/55158
......@@ -328,6 +328,7 @@ lto_write_tree (struct output_block *ob, tree expr, bool ref_p)
tree initial = DECL_INITIAL (expr);
if (TREE_CODE (expr) == VAR_DECL
&& (TREE_STATIC (expr) || DECL_EXTERNAL (expr))
&& !DECL_IN_CONSTANT_POOL (expr)
&& initial)
{
lto_symtab_encoder_t encoder;
......
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