https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118318
--- Comment #15 from Jan Hubicka <hubicka at ucw dot cz> ---
> Breakpoint 5.2, profile_count::operator+= (this=0x7ffff6e7e888, other=...) at
> /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/profile-count.h:932
> 932 gcc_checking_assert (compatible_p (other));
> (gdb) p other
> $38 = (const profile_count &) @0x7fffffff72a0: {
> static n_bits = 61,
> static max_count = 2305843009213693950,
> static uninitialized_count = 2305843009213693951,
> m_val = 3694,
> m_quality = ADJUSTED
> }
> (gdb) p *this
> $39 = {
> static n_bits = 61,
> static max_count = 2305843009213693950,
> static uninitialized_count = 2305843009213693951,
> m_val = 14776,
> m_quality = GUESSED_GLOBAL0
> }
> (gdb)
Thanks a lot! So what happened is that we cloned function and conlcuded
it executes 0 times, while we want to make call inside that function to
execute 3694 times. I don't think we should clone function we think
will be executed 0 times. What probably can happen is that we are
updating count of the non-specialized (original function) and this comes
out as an roundoff error...
Honza
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.