gcov: reduce code quality loss by reproducible topn merging [PR92924]

Gerald Pfeifer gerald@pfeifer.com
Thu Feb 27 20:20:00 GMT 2020


On Mon, 24 Feb 2020, Gerald Pfeifer wrote:
> This (or rather its predecessor?) breaks bootstrap on 32-bit 
> 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 hastype 'int' [-Werror=format=]
>   268 |        fprintf (dump_file, " all: %" PRId64 "%s, values: ",
>       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   269 |          abs ((int64_t) hist->hvalue.counters[0]),
>       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |              |
>       |              int
> 
> (I'm not sure why my nightly tester has not caught this, but only
> the snapshot did.)

This is now https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93962 .

Gerald



More information about the Gcc-patches mailing list