https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Oct 6 07:11:25 2017 New Revision: 253476 URL: https://gcc.gnu.org/viewcvs?rev=253476&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/c-c++-common/Wtautological-compare-6.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-warn.c trunk/gcc/testsuite/ChangeLog