From: Eric Botcazou Date: Sat, 8 Dec 2012 15:53:39 +0000 (+0000) Subject: lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of variables in... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acd3f1c2d42590783e6b62a811f2886f4cc2c79b;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 33f75979b0f..96fe2ecee59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-12-08 Eric Botcazou + + * 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 PR rtl-optimization/55158 diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 0bddb3dfcbb..853b155a3af 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -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;