[Bug c/82437] [8 Regression] false-positive -Wtautological-compare warning with -std=gnu89

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 10 16:18:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Oct 10 16:17:47 2017
New Revision: 253589

URL: https://gcc.gnu.org/viewcvs?rev=253589&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/c-c++-common/Wtautological-compare-7.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list