2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Aug 2008 16:17:41 +0000 (16:17 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Aug 2008 16:17:41 +0000 (16:17 +0000)
commit13869a997eacda65a4fc0cd0176a83290c54a819
treea1e568cec33c05d17fd32cf2c3885137e848b1ce
parent8deb3959b001122f1d9f0f8320adc8bc77844046
2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 8715
* c-common.c (warn_for_sign_compare): New. Handle separately the
case that 'constant' is zero.
* c-typeck.c (build_binary_op): Move code to c-common.c
cp/
* typeck.c (cp_build_binary_op): Move code to c-common.c.
testsuite/
* gcc.dg/pr8715.c: New.
* g++.dg/warn/pr8715.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138814 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr8715.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr8715.c [new file with mode: 0644]