aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-11-30 16:16:00 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-11-30 16:16:00 +0100
commit40513dd30b587ccb7967b565822f473f96d73544 (patch)
treed50ece23a56d9c3dbdc666ae1976083095c60702 /gcc
parentc5fdd4ad9799cac7701e9ba82901f84a30957082 (diff)
downloadgcc-40513dd30b587ccb7967b565822f473f96d73544.zip
gcc-40513dd30b587ccb7967b565822f473f96d73544.tar.gz
gcc-40513dd30b587ccb7967b565822f473f96d73544.tar.bz2
* ipa-reference.c (propagate): Only dump bitmaps if computed.
From-SVN: r154818
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ipa-reference.c29
2 files changed, 19 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cd784d0..884d015 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-30 Jakub Jelinek <jakub@redhat.com>
+
+ * ipa-reference.c (propagate): Only dump bitmaps if computed.
+
2009-11-30 Olga Golovanevsky <olga@il.ibm.com>
PR middle-end/39806
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
index 032bef2..98a4ce7 100644
--- a/gcc/ipa-reference.c
+++ b/gcc/ipa-reference.c
@@ -1389,22 +1389,23 @@ propagate (void)
ipa_reference_local_vars_info_t w_l = w_ri->local;
fprintf (dump_file, "\n next cycle: %s/%i ",
cgraph_node_name (w), w->uid);
- fprintf (dump_file, "\n locals read: ");
- EXECUTE_IF_SET_IN_BITMAP (w_l->statics_read,
- 0, index, bi)
- {
- fprintf (dump_file, "%s ",
- get_static_name (index));
- }
+ fprintf (dump_file, "\n locals read: ");
+ if (w_l->statics_read)
+ EXECUTE_IF_SET_IN_BITMAP (w_l->statics_read,
+ 0, index, bi)
+ {
+ fprintf (dump_file, "%s ",
+ get_static_name (index));
+ }
fprintf (dump_file, "\n locals written: ");
- EXECUTE_IF_SET_IN_BITMAP (w_l->statics_written,
- 0, index, bi)
- {
- fprintf(dump_file, "%s ",
- get_static_name (index));
- }
-
+ if (w_l->statics_written)
+ EXECUTE_IF_SET_IN_BITMAP (w_l->statics_written,
+ 0, index, bi)
+ {
+ fprintf (dump_file, "%s ",
+ get_static_name (index));
+ }
w_info = (struct ipa_dfs_info *) w->aux;
w = w_info->next_cycle;