]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-common.c
re PR c/2098 (compare with unsigned variable - no error reporting)
authorRichard Henderson <rth@redhat.com>
Fri, 26 Apr 2002 02:15:52 +0000 (19:15 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 26 Apr 2002 02:15:52 +0000 (19:15 -0700)
commit5c5b22838958187f83bf60d0394cc06942796646
treed191e51bd4b8889ad81bf2f13318123a238b62bb
parent28ce94d46b9b885cc01f1649bc545b6978e033d0
re PR c/2098 (compare with unsigned variable - no error reporting)

        PR c/2098
        * c-common.c (shorten_compare): Simplfy conditions leading to
        the generation of a warning.

* gcc.dg/compare6.c: New.

From-SVN: r52778
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/gcc.dg/compare6.c [new file with mode: 0644]