aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/profile.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4a729fe..9ffaa0e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-06 Jan Hubicka <hubicka@ucw.cz>
+
+ * profile.c (compute_branch_probabilities): Also initialize
+ EXIT_BLOCK profile.
+
2017-06-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/80928
diff --git a/gcc/profile.c b/gcc/profile.c
index 219fa8a..d0dc3b8 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -826,7 +826,7 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum)
}
}
- FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb)
+ FOR_ALL_BB_FN (bb, cfun)
{
edge e;
edge_iterator ei;