[Bug plugins/105171] gcc/toplev.c: `local_tick` can overflow and become -1
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 5 23:02:20 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105171
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
Component|driver |plugins
Last reconfirmed| |2022-04-05
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> local_tick = (unsigned) tv.tv_sec * 1000 + tv.tv_usec / 1000;
The only place where local_tick is used is inside coverage.cc:
if (!flag_branch_probabilities && flag_test_coverage
&& (!local_tick || local_tick == (unsigned)-1))
/* Only remove the da file, if we're emitting coverage code and
cannot uniquely stamp it. If we can stamp it, libgcov will DTRT. */
unlink (da_file_name);
This does not make a difference really here.
Plus inside a plugin, I don't see why you care about if -frandom-seed was
supplied or not.
More information about the Gcc-bugs
mailing list