[Bug c/23577] spurious warnings about unhandled cases in switches (need VRP and control flow in front-end)
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 27 04:42:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23577
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> The warning is done without flow control.
>
> The optmization needs a "full" VRP which keeps of track of discontinuous
> ranges which is too expensive
> really.
...maybe once Project Ranger is merged and we have that info available
on-demand it'll be easier?
More information about the Gcc-bugs
mailing list