[Bug c/64440] -Wdiv-by-zero false negative on const variables

2015-01-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64440 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/64440] -Wdiv-by-zero false negative on const variables

2015-01-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64440 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Wed Jan 7 08:21:50 2015 New Revision: 219279 URL: https://gcc.gnu.org/viewcvs?rev=219279&root=gcc&view=rev Log: PR c/64440 * c-common.c (c_fully_fold_internal): Warn for divis

[Bug c/64440] -Wdiv-by-zero false negative on const variables

2015-01-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64440 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c/64440] -Wdiv-by-zero false negative on const variables

2015-01-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64440 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c/64440] -Wdiv-by-zero false negative on const variables

2014-12-30 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64440 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Commen

[Bug c/64440] -Wdiv-by-zero false negative on const variables

2014-12-29 Thread chengniansun at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64440 --- Comment #2 from Chengnian Sun --- (In reply to Andrew Pinski from comment #1) > In C, const int is not a constant expression and -Wdiv-by-zero only warns > about integer constant expressions. Thanks for your reply. It seems GCC sometimes do

[Bug c/64440] -Wdiv-by-zero false negative on const variables

2014-12-29 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64440 --- Comment #1 from Andrew Pinski --- In C, const int is not a constant expression and -Wdiv-by-zero only warns about integer constant expressions.