aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-06-24 05:07:13 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-06-24 03:07:13 +0000
commiteb6a09a72512d4280d733ac952bfda092322793a (patch)
treea51449e3f96f4e51de47700bc16b67cd2476d8ce /gcc/varpool.c
parentd7dab049c733dce5c6bc35aae0194a0cef3aaa9f (diff)
downloadgcc-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/varpool.c')
-rw-r--r--gcc/varpool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index f6f8365..580144e 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -211,6 +211,8 @@ dump_varpool_node (FILE *f, varpool_node *node)
fprintf (f, " initialized");
if (node->output)
fprintf (f, " output");
+ if (node->used_by_single_function)
+ fprintf (f, " used-by-single-function");
if (TREE_READONLY (node->decl))
fprintf (f, " read-only");
if (ctor_for_folding (node->decl) != error_mark_node)