diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-12-08 15:53:39 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2012-12-08 15:53:39 +0000 |
commit | ccd622ec7ef370707547e9f97242f79f3ab9e65a (patch) | |
tree | 59abfddfdd610c6f7ba56eceb9d09ea2447fa736 /gcc/lto-streamer-out.c | |
parent | 9019c60aa8bf1dc759288aa48727f4cf8711226f (diff) |
* lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
variables in the global contant pool.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@194324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |