* c-decl.c (mesg_implicit_function_declaration): Init to -1.
commit65a7af3fc16b95477ea416f9410d6ff627a03e1e
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Jul 2000 18:10:31 +0000 (31 18:10 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Jul 2000 18:10:31 +0000 (31 18:10 +0000)
tree71356bf58f3c89b7f453bb3fe8fa75cffb958203
parentbaaa5be9c4189f4555e59ea8fc8bc425d31ddb57
* c-decl.c (mesg_implicit_function_declaration): Init to -1.
(implicit_decl_warning): New function.
(implicitly_declare): Use it.
* c-typeck.c (build_external_ref): Use implicit_decl_warning
to complain about implicit decls of builtins.

* c-lang.c (lang_init): Set mesg_implicit_function_declaration
based on pedantic && flag_isoc99, if not already set.
* c-tree.h: Declare mesg_implicit_function_declaration.
Prototype implicit_decl_warning.

* gcc.dg/c99-impl-decl-1.c: No longer XFAIL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35385 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-lang.c
gcc/c-tree.h
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-impl-decl-1.c