re PR c/82437 (false-positive -Wtautological-compare warning with -std=gnu89)
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Oct 2017 16:17:47 +0000 (18:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Oct 2017 16:17:47 +0000 (18:17 +0200)
commit802b38c91f7c5a03e69e37bd4a1ad54a46020671
tree0a3c72e25a92aefd78d1847ce86e51522dab076e
parenta6a5091a56a6f7e7d98643cc14c59313eebf8e6f
re PR c/82437 (false-positive -Wtautological-compare warning with -std=gnu89)

PR c/82437
* c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
instead of wide_int::from.

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

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