[Bug middle-end/85598] [7/8/9 Regression] Incorrect warning only at -O2 and -O3
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 22 13:19:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85598
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #6)
> Or, couldn't e.g. number of iterations analysis if it determines linear IV
> adjust the value range?
It indeed could if it's just the PHI that is lacking. OTOH niter analysis
generally computes the number of iterations of an exit, not of a PHI node.
OTOH the sprintf pass could simply compute value-ranges...
More information about the Gcc-bugs
mailing list