[Bug c/89126] missing -Wtype-limits for int variables

2021-01-04 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89126 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org --- Comment #4

[Bug c/89126] missing -Wtype-limits for int variables

2019-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89126 --- Comment #3 from Martin Sebor --- The problem is in shorten_compare() in c-common.c which deals with these cases. The comment above the block that handles this has this to say just above the conditional that guards the code. The conditional

[Bug c/89126] missing -Wtype-limits for int variables

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89126 --- Comment #2 from Martin Sebor --- In ILP32 it doesn't work for long either.

[Bug c/89126] missing -Wtype-limits for int variables

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89126 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Known to fail|