diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-06-24 05:07:13 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-06-24 03:07:13 +0000 |
commit | eb6a09a72512d4280d733ac952bfda092322793a (patch) | |
tree | a51449e3f96f4e51de47700bc16b67cd2476d8ce /gcc/lto-cgraph.c | |
parent | d7dab049c733dce5c6bc35aae0194a0cef3aaa9f (diff) | |
download | gcc-eb6a09a72512d4280d733ac952bfda092322793a.zip gcc-eb6a09a72512d4280d733ac952bfda092322793a.tar.gz gcc-eb6a09a72512d4280d733ac952bfda092322793a.tar.bz2 |
varpool.c (dump_varpool_node): Dump used_by_single_function.
* varpool.c (dump_varpool_node): Dump used_by_single_function.
* tree-pass.h (make_pass_ipa_single_use): New pass.
* cgraph.h (used_by_single_function): New flag.
* lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
it.
* passes.def (pass_ipa_single_use): Scedule.
* ipa.c (BOTTOM): New macro.
(meet): New function
(propagate_single_user): New function.
(ipa_single_use): New function.
(pass_data_ipa_single_use): New pass.
(pass_ipa_single_use): New pass.
(pass_ipa_single_use::gate): New gate.
(make_pass_ipa_single_use): New function.
From-SVN: r211925
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 1683704..ffc6247 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -614,6 +614,7 @@ lto_output_varpool_node (struct lto_simple_output_block *ob, varpool_node *node, /* in_other_partition. */ } bp_pack_value (&bp, node->tls_model, 3); + bp_pack_value (&bp, node->used_by_single_function, 1); streamer_write_bitpack (&bp); group = node->get_comdat_group (); @@ -1275,6 +1276,7 @@ input_varpool_node (struct lto_file_decl_data *file_data, if (node->alias && !node->analyzed && node->weakref) 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); group = read_identifier (ib); if (group) { |