r232894 - in /trunk/gcc: c/ChangeLog c/c-typeck...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Wed Jan 27 19:13:00 GMT 2016


Author: mpolacek
Date: Wed Jan 27 19:13:42 2016
New Revision: 232894

URL: https://gcc.gnu.org/viewcvs?rev=232894&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:
    trunk/gcc/testsuite/c-c++-common/vector-compare-4.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list