aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-06-19 22:28:28 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-06-19 22:28:28 +0000
commit7e585d16ce4df23bfd21cf82e58dd323f9939232 (patch)
treef8653d51128340a6406078646bbab4019565ca16 /gcc/c-tree.h
parent2f1034940abd6330b54ba614df5cd1795fd76557 (diff)
downloadgcc-7e585d16ce4df23bfd21cf82e58dd323f9939232.zip
gcc-7e585d16ce4df23bfd21cf82e58dd323f9939232.tar.gz
gcc-7e585d16ce4df23bfd21cf82e58dd323f9939232.tar.bz2
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
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index ae27e61..7c86e26 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -163,6 +163,7 @@ extern tree maybe_building_objc_message_expr PARAMS ((void));
extern tree maybe_objc_method_name PARAMS ((tree));
extern int recognize_objc_keyword PARAMS ((void));
extern tree build_objc_string PARAMS ((int, const char *));
+extern tree lookup_objc_ivar PARAMS ((tree));
/* in c-parse.in */
extern void c_parse_init PARAMS ((void));
@@ -263,6 +264,7 @@ extern tree default_conversion PARAMS ((tree));
extern tree build_component_ref PARAMS ((tree, tree));
extern tree build_indirect_ref PARAMS ((tree, const char *));
extern tree build_array_ref PARAMS ((tree, tree));
+extern tree build_external_ref PARAMS ((tree, int));
extern tree build_function_call PARAMS ((tree, tree));
extern tree parser_build_binary_op PARAMS ((enum tree_code,
tree, tree));