2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
commit6513b50d6d43a4f2c9483d511d76f4e8d9046131
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Aug 2008 12:37:32 +0000 (9 12:37 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Aug 2008 12:37:32 +0000 (9 12:37 +0000)
treec4488aadaa6e95ea5ce61510a777e178059a7519
parent1896de120aa5448c24789c48de5895a7a7641de8
2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c/17880
* c-typeck.c (digest_init): Call verify_sequence_points from here.
(c_finish_return): Likewise.
(c_start_case): Likewise.
* c-common.c (warn_for_collisions_1): Use explicit location in
warning.
* c-parser.c (c_parser_condition): New. Call
verify_sequence_points.
(c_parser_paren_condition): Call c_parser_condition.
(c_parser_for_statement): Call c_parser_condition.
testsuite/
* gcc.dg/sequence-pt-pr17880.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138904 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/c-parser.c
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sequence-pt-pr17880.c [new file with mode: 0644]