summaryrefslogtreecommitdiffstats
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-19 22:28:28 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-19 22:28:28 +0000
commit1beb61f908c3a79a7af054f120dd87e34123c39a (patch)
treef8653d51128340a6406078646bbab4019565ca16 /gcc/c-lang.c
parentb170b427166146eda4791ef625a78d1b25fdd422 (diff)
downloadppe42-gcc-1beb61f908c3a79a7af054f120dd87e34123c39a.tar.gz
ppe42-gcc-1beb61f908c3a79a7af054f120dd87e34123c39a.zip
* 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
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index 331ff54e5dc..620ed78c676 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -171,6 +171,15 @@ build_objc_string (len, str)
return NULL_TREE;
}
+/* Used by c-typeck.c (build_external_ref), but only for objc. */
+
+tree
+lookup_objc_ivar (id)
+ tree id ATTRIBUTE_UNUSED;
+{
+ return 0;
+}
+
/* Called at end of parsing, but before end-of-file processing. */
void
OpenPOWER on IntegriCloud