aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-04-28 14:49:26 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-04-28 12:49:26 +0000
commit34769baf7d9d8e5545c478d85db3261c6dda3c89 (patch)
treee7a12c6660305c53dab971f3347996185cd2e9af /gcc/profile.c
parent5c5059bcf87715daa965eec3c04731f447fcbb0a (diff)
downloadgcc-34769baf7d9d8e5545c478d85db3261c6dda3c89.zip
gcc-34769baf7d9d8e5545c478d85db3261c6dda3c89.tar.gz
gcc-34769baf7d9d8e5545c478d85db3261c6dda3c89.tar.bz2
gcno file: do not stream block flags (PR gcov-profile/80031).
2017-04-28 Martin Liska <mliska@suse.cz> PR gcov-profile/80031 * gcov-dump.c (tag_blocks): Just print number of basic blocks. * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro. * gcov.c (read_graph_file): Read just number of blocks. * profile.c (branch_prob): Do not stream 0 flags per a basic block. From-SVN: r247370
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index c6f462d..c7eed0e 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -1195,8 +1195,7 @@ branch_prob (void)
/* Basic block flags */
offset = gcov_write_tag (GCOV_TAG_BLOCKS);
- for (i = 0; i != (unsigned) (n_basic_blocks_for_fn (cfun)); i++)
- gcov_write_unsigned (0);
+ gcov_write_unsigned (n_basic_blocks_for_fn (cfun));
gcov_write_length (offset);
/* Arcs */