c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
authorZack Weinberg <zack@gcc.gnu.org>
Mon, 19 Jun 2000 22:28:28 +0000 (22:28 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 19 Jun 2000 22:28:28 +0000 (22:28 +0000)
commit7e585d16ce4df23bfd21cf82e58dd323f9939232
treef8653d51128340a6406078646bbab4019565ca16
parent2f1034940abd6330b54ba614df5cd1795fd76557
c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.

* 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.

From-SVN: r34602
12 files changed:
gcc/ChangeLog
gcc/c-lang.c
gcc/c-lex.c
gcc/c-lex.h
gcc/c-parse.c
gcc/c-parse.in
gcc/c-parse.y
gcc/c-tree.h
gcc/c-typeck.c
gcc/objc/objc-act.c
gcc/objc/objc-parse.c
gcc/objc/objc-parse.y