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
This commit is contained in:
parent
c86e9f03ab
commit
ca280d38f9
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue