* c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
(primary: IDENTIFIER): Just call build_external_ref. * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c: Regenerate. * c-lex.c (lastiddecl): Remove. (yylex): Replace all instances of lastiddecl with local variables. * c-typeck.c (build_external_ref): New function. Treat decls with C_DECL_ANTICIPATED mostly the same as nonexistent decls. Look up the decl from the id here. Call lookup_objc_ivar. * c-lang.c (lookup_objc_ivar): Stub. * objc/objc-act.c (lookup_objc_ivar): New function. * c-tree.h: Prototype lookup_objc_ivar and build_external_ref. * c-lex.h: Don't declare lastiddecl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34602 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 105 additions, 86 deletionsgcc/ChangeLog
- gcc/c-lang.c 9 additions, 0 deletionsgcc/c-lang.c
- gcc/c-lex.c 13 additions, 17 deletionsgcc/c-lex.c
- gcc/c-lex.h 0 additions, 6 deletionsgcc/c-lex.h
- gcc/c-parse.c 378 additions, 472 deletionsgcc/c-parse.c
- gcc/c-parse.in 3 additions, 166 deletionsgcc/c-parse.in
- gcc/c-parse.y 3 additions, 97 deletionsgcc/c-parse.y
- gcc/c-tree.h 2 additions, 0 deletionsgcc/c-tree.h
- gcc/c-typeck.c 92 additions, 0 deletionsgcc/c-typeck.c
- gcc/objc/objc-act.c 21 additions, 0 deletionsgcc/objc/objc-act.c
- gcc/objc/objc-parse.c 508 additions, 663 deletionsgcc/objc/objc-parse.c
- gcc/objc/objc-parse.y 3 additions, 158 deletionsgcc/objc/objc-parse.y
Loading
Please register or sign in to comment