re PR c/82437 (false-positive -Wtautological-compare warning with -std=gnu89)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Oct 2017 07:11:25 +0000 (09:11 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Oct 2017 07:11:25 +0000 (09:11 +0200)
commit4e34b338f703d72e1d4a90116e9d2c6aa0a3d5d8
tree1edd646c5ff05278d73442bec96be0300188aeaf
parentbd8d431f44377efe110b02163d693e60421acdeb
re PR c/82437 (false-positive -Wtautological-compare warning with -std=gnu89)

PR c/82437
* c-warn.c (warn_tautological_bitwise_comparison): Instead of
using to_widest use wide_int with the larger of the two precisions.

* c-c++-common/Wtautological-compare-6.c: New test.

From-SVN: r253476
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wtautological-compare-6.c [new file with mode: 0644]