OSDN Git Service

2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Apr 2009 07:47:13 +0000 (07:47 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Apr 2009 07:47:13 +0000 (07:47 +0000)
commit79973b57881ed80335c998508bf71555e05c35d1
tree42ffdc85ff34751f35f4783c71117e6304c80f6b
parent2ab8f08d3d8b5a0413ebf1192b1ce519ed6fd588
2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR 16202
* c-typeck.c (lvalue_p): Move declaration ...
* c-common.h (lvalue_p): ... to here.
* c-common.c (candidate_equal_p): New.
(add_tlist): Use it.
(merge_tlist): Use it.
(warn_for_collisions_1): Likewise.
(warning_candidate_p): Accept more candidates.
(verify_tree): A warning candidate can be an expression. Use
candidate_equal_p.
cp/
* tree.c (lvalue_p_1): Use const_tree.
Use CONST_CAST_TREE to avoid warning.
(lvalue_p): Returns bool, receives const_tree.
testsuite/
* gcc.dg/sequence-pt-1.c: Remove XFAILs.
* gcc.dg/sequence-pt-2.c: New.
* gcc.dg/sequence-pt-3.c: New.
* g++.dg/warn/sequence-pt-1.C: Remove XFAILs.
* g++.dg/warn/sequence-pt-2.c: New.
* g++.dg/warn/sequence-pt-3.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146472 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/sequence-pt-1.C
gcc/testsuite/g++.dg/warn/sequence-pt-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/sequence-pt-3.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/sequence-pt-1.c
gcc/testsuite/gcc.dg/sequence-pt-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sequence-pt-3.c [new file with mode: 0644]