PR c/82437
commitbc64d8a62c97d16f65847b8b6db11d2481c316dd
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2017 07:11:25 +0000 (6 07:11 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2017 07:11:25 +0000 (6 07:11 +0000)
tree1edd646c5ff05278d73442bec96be0300188aeaf
parent74936b228b044895bd535a91a847e6ec2fc93320
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253476 138bc75d-0d04-0410-961f-82ee72b054a4
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]