2010-11-13 Paolo Bonzini <bonzini@gnu.org>
commit21e609c59695b33c96a3be63c06933e9a10dd9df
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 Nov 2010 13:10:41 +0000 (14 13:10 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 Nov 2010 13:10:41 +0000 (14 13:10 +0000)
tree4e246b3e80d5dc1a3504b96a42dad8946d9320d6
parent74f602fcb3235c2c848296287a343e56aa57f431
2010-11-13  Paolo Bonzini  <bonzini@gnu.org>

PR c/46462
* c-decl.c (declspecs_add_type): Make variables with error types
integers.
* c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
do not start a declaration before an Objective-C foreach.
(c_parser_declaration_or_fndef): Improve recovery after unknown
type name.
(c_parser_for_statement): Hoist entrance of "foreach context"
before ifs, add corresponding reset where it was missing.  Do
not set objc_could_be_foreach_context for C.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166732 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-parser.c