summaryrefslogtreecommitdiff
path: root/gcc/ipa-reference.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 15:16:00 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 15:16:00 +0000
commitf565b7057014b8c17ef2749e5fde116707f125c9 (patch)
treed50ece23a56d9c3dbdc666ae1976083095c60702 /gcc/ipa-reference.c
parent6bcbbc8b8dddea1cba8a9dd29a62a8ed3720366b (diff)
downloadgcc-f565b7057014b8c17ef2749e5fde116707f125c9.tar.gz
* ipa-reference.c (propagate): Only dump bitmaps if computed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r--gcc/ipa-reference.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
index 032bef278eb..98a4ce7d714 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;