From ca280d38f95255a876fc56547d55ab3db50ea38f Mon Sep 17 00:00:00 2001 From: Maxim Ostapenko Date: Wed, 11 Jan 2017 12:57:42 +0000 Subject: [PATCH] re PR lto/79042 (LTO doesn't propagate node->dynamically_initialized bit for varpool nodes.) PR lto/79042 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized bit. (input_varpool_node): Unpack dynamically_initialized bit. From-SVN: r244314 --- gcc/ChangeLog | 7 +++++++ gcc/lto-cgraph.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00eabd0c1cd..9378254f538 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-01-11 Maxim Ostapenko + + PR lto/79042 + * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized + bit. + (input_varpool_node): Unpack dynamically_initialized bit. + 2017-01-11 Eric Botcazou PR rtl-optimization/79032 diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index c0321f79362..77605f70109 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -626,6 +626,7 @@ lto_output_varpool_node (struct lto_simple_output_block *ob, varpool_node *node, } bp_pack_value (&bp, node->tls_model, 3); bp_pack_value (&bp, node->used_by_single_function, 1); + bp_pack_value (&bp, node->dynamically_initialized, 1); bp_pack_value (&bp, node->need_bounds_init, 1); streamer_write_bitpack (&bp); @@ -1400,6 +1401,7 @@ input_varpool_node (struct lto_file_decl_data *file_data, node->alias_target = get_alias_symbol (node->decl); node->tls_model = (enum tls_model)bp_unpack_value (&bp, 3); node->used_by_single_function = (enum tls_model)bp_unpack_value (&bp, 1); + node->dynamically_initialized = bp_unpack_value (&bp, 1); node->need_bounds_init = bp_unpack_value (&bp, 1); group = read_identifier (ib); if (group) -- 2.30.2