diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 16:17:41 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 16:17:41 +0000 |
commit | 13869a997eacda65a4fc0cd0176a83290c54a819 (patch) | |
tree | a1e568cec33c05d17fd32cf2c3885137e848b1ce /gcc/c-common.h | |
parent | 8deb3959b001122f1d9f0f8320adc8bc77844046 (diff) | |
download | gcc-13869a997eacda65a4fc0cd0176a83290c54a819.tar.gz |
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
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index f600751f0c0..0f2a359c16f 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -928,6 +928,10 @@ extern void warn_about_parentheses (enum tree_code, enum tree_code, enum tree_code); extern void warn_for_unused_label (tree label); extern void warn_for_div_by_zero (tree divisor); +extern void warn_for_sign_compare (tree orig_op0, tree orig_op1, + tree op0, tree op1, + tree result_type, + enum tree_code resultcode); /* In c-gimplify.c */ extern void c_genericize (tree); |