[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread arnd at linaro dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 --- Comment #8 from Arnd Bergmann --- (In reply to Jakub Jelinek from comment #6) > If the warning has false positives, then I'm sure the kernel will turn it > off anyway like it does with tons of other warnings. That is well possible. I try to

[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 --- Comment #7 from Jeffrey A. Law --- The thing is, if we could prove the trap is always executed, then we'd just zap everything prior to the trap without visible side effects and everything after the trap. It's actually not an interesting case

[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 --- Comment #6 from Jakub Jelinek --- If the warning has false positives, then I'm sure the kernel will turn it off anyway like it does with tons of other warnings.

[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 --- Comment #5 from Marc Glisse --- If we only warn when the trap is always executed as Arnd suggests (determined in a similar way as uninitialized vs maybe-uninitialized), I guess there should be fewer false positive (only cloning seems likely t

[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 --- Comment #4 from Jakub Jelinek --- s/would be/would have/

[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread arnd at linaro dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 --- Comment #2 from Arnd Bergmann --- (In reply to Richard Biener from comment #1) > Note such warning in the middle-end has the chance of false > positives from (for example) path isolation. Would it be possible to warn if a function always tra

[Bug tree-optimization/79828] missing div-by-zero warning

2017-03-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 Richard Biener changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRM