re PR lto/79042 (LTO doesn't propagate node->dynamically_initialized bit for varpool...
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Wed, 11 Jan 2017 12:57:42 +0000 (12:57 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Wed, 11 Jan 2017 12:57:42 +0000 (14:57 +0200)
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
gcc/lto-cgraph.c

index 00eabd0c1cd92ffb30c82ead1f5d9766856adb45..9378254f538bb84f0bf268126d04277ba8bae231 100644 (file)
@@ -1,3 +1,10 @@
+2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
+
+       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  <ebotcazou@adacore.com>
 
        PR rtl-optimization/79032
index c0321f79362011758efb28e455805a031ddfe3de..77605f70109241633dde3e9bf4e9779c6ea73ce6 100644 (file)
@@ -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)