https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81417
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Thu Jul 27 15:02:17 2017 New Revision: 250630 URL: https://gcc.gnu.org/viewcvs?rev=250630&root=gcc&view=rev Log: PR c/81417 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print the types. * c-c++-common/Wsign-compare-1.c: New test. * g++.dg/warn/Wsign-compare-2.C: Update dg-warning. * g++.dg/warn/Wsign-compare-4.C: Likewise. * g++.dg/warn/Wsign-compare-6.C: Likewise. * g++.dg/warn/compare1.C: Likewise. * gcc.dg/compare1.c: Likewise. * gcc.dg/compare2.c: Likewise. * gcc.dg/compare4.c: Likewise. * gcc.dg/compare5.c: Likewise. * gcc.dg/pr35430.c: Likewise. * gcc.dg/pr60087.c: Likewise. Added: trunk/gcc/testsuite/c-c++-common/Wsign-compare-1.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-warn.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/warn/Wsign-compare-2.C trunk/gcc/testsuite/g++.dg/warn/Wsign-compare-4.C trunk/gcc/testsuite/g++.dg/warn/Wsign-compare-6.C trunk/gcc/testsuite/g++.dg/warn/compare1.C trunk/gcc/testsuite/gcc.dg/compare1.c trunk/gcc/testsuite/gcc.dg/compare2.c trunk/gcc/testsuite/gcc.dg/compare4.c trunk/gcc/testsuite/gcc.dg/compare5.c trunk/gcc/testsuite/gcc.dg/pr35430.c trunk/gcc/testsuite/gcc.dg/pr60087.c