https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68062
--- Comment #17 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Wed Jan 27 20:31:00 2016 New Revision: 232903 URL: https://gcc.gnu.org/viewcvs?rev=232903&root=gcc&view=rev Log: PR c/68062 * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand to unsigned, if needed. Add -Wsign-compare warning. * typeck.c (cp_build_binary_op): Promote operand to unsigned, if needed. Add -Wsign-compare warning. * c-c++-common/vector-compare-4.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/c-c++-common/vector-compare-4.c Modified: branches/gcc-5-branch/gcc/c/ChangeLog branches/gcc-5-branch/gcc/c/c-typeck.c branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/typeck.c branches/gcc-5-branch/gcc/testsuite/ChangeLog