https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93962
Bug ID: 93962
Summary: [10 regression] bootstrap fails with
gcc/value-prof.c:268:28 : error: format '%lld' expects
argument of type 'long long int', but argument 3
hastype 'int'
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: gerald at pfeifer dot com
CC: hubicka at gcc dot gnu.org, mliska at suse dot cz
Target Milestone: ---
Host: i386-unknown-freebsd11.3
Target: i386-unknown-freebsd11.3
Build: i386-unknown-freebsd11.3
/scratch/tmp/gerald/gcc10-devel-work/gcc-10-20200223/gcc/value-prof.c: In
function 'void dump_histogram_value(FILE*, histogram_value)':
/scratch/tmp/gerald/gcc10-devel-work/gcc-10-20200223/gcc/value-prof.c:268:28
: error: format '%lld' expects argument of type 'long long int', but
argument 3 has type 'int' [-Werror=format=]
268 | fprintf (dump_file, " all: %" PRId64 "%s, values: ",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
269 | abs ((int64_t) hist->hvalue.counters[0]),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
I believe this may be caused by 2020-02-18 Martin Liska <[email protected]>
PR ipa/92924
* common.opt: Add -fprofile-reproducibility.
* doc/invoke.texi: Document it.
* value-prof.c (dump_histogram_value):
Document and support behavior for counters[0]
being a negative value.
(get_nth_most_common_value): Handle negative
counters[0] in respect to flag_profile_reproducible.