gcc/:
commit067d82a2aab9107b8a630df91ce2036edc8a558d
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Feb 2008 06:17:46 +0000 (22 06:17 +0000)
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Feb 2008 06:17:46 +0000 (22 06:17 +0000)
tree3f5c89f2924defd243a7584af42364ce079bb2fd
parent2dd2bcbd97b40f8e775560c6452d6263b894e142
gcc/:
PR c/19999
* c-typeck.c (build_binary_op): Warn about floating point
comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.

gcc/cp/:
* typeck.c (build_binary_op): Warn about floating point
comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.

gcc/testsuite/:
* gcc.dg/Wfloat-equal-1.c: New.
* g++.dg/warn/Wfloat-equal-1.C: New.

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