This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Implicit declaration warnings for builtins


Zack Weinberg writes:
 > 	* 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.

The C version of lookup_objc_ivar needs a (short) comment saying
that it is a stub of the objc version of the function.

This is OK with the exception of the comment below.  Thanks and please
commit this.  Sorry this took so long.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]