diff options
author | Martin Jambor <mjambor@suse.cz> | 2021-07-15 17:26:45 +0200 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2021-07-15 17:27:17 +0200 |
commit | 07bd2703047d222ed7ff189d86350e73c5cc2c9e (patch) | |
tree | 1ccd08c4ccd264413e71c876b714ab1b90210400 /gcc/tree-cfg.c | |
parent | 17855eed7fc76b2cee7fbbc26f84d3c8b99be13c (diff) | |
download | gcc-07bd2703047d222ed7ff189d86350e73c5cc2c9e.zip gcc-07bd2703047d222ed7ff189d86350e73c5cc2c9e.tar.gz gcc-07bd2703047d222ed7ff189d86350e73c5cc2c9e.tar.bz2 |
Change the type of return value of profile_count::value to uint64_t
The field in which profile_count holds the count has 61 bits but the
getter method only returns it as a 32 bit number. The getter is (and
should be) only used for dumping but even dumps are better when they
do not lie.
gcc/ChangeLog:
2021-07-13 Martin Jambor <mjambor@suse.cz>
* profile-count.h (profile_count::value): Change the return type to
uint64_t.
* gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
statement.
* tree-cfg.c (dump_function_to_file): Likewise.
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 2820847..c8b0f7b 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -8086,7 +8086,7 @@ dump_function_to_file (tree fndecl, FILE *file, dump_flags_t flags) { basic_block bb = ENTRY_BLOCK_PTR_FOR_FN (cfun); if (bb->count.initialized_p ()) - fprintf (file, ",%s(%d)", + fprintf (file, ",%s(%" PRIu64 ")", profile_quality_as_string (bb->count.quality ()), bb->count.value ()); fprintf (file, ")\n%s (", function_name (fun)); |