summaryrefslogtreecommitdiffstats
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-31 18:10:31 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-31 18:10:31 +0000
commit65a7af3fc16b95477ea416f9410d6ff627a03e1e (patch)
tree71356bf58f3c89b7f453bb3fe8fa75cffb958203 /gcc/c-tree.h
parentbaaa5be9c4189f4555e59ea8fc8bc425d31ddb57 (diff)
downloadppe42-gcc-65a7af3fc16b95477ea416f9410d6ff627a03e1e.tar.gz
ppe42-gcc-65a7af3fc16b95477ea416f9410d6ff627a03e1e.zip
* 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
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index fcf6112e524..0bb4efb710f 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -188,6 +188,7 @@ extern tree grokfield PARAMS ((const char *, int, tree
extern tree groktypename PARAMS ((tree));
extern tree groktypename_in_parm_context PARAMS ((tree));
extern tree implicitly_declare PARAMS ((tree));
+extern void implicit_decl_warning PARAMS ((tree));
extern int in_parm_level_p PARAMS ((void));
extern void init_decl_processing PARAMS ((void));
extern void insert_block PARAMS ((tree));
@@ -388,6 +389,9 @@ extern int warn_long_long;
extern int system_header_p;
+/* Warn about implicit declarations. 1 = warning, 2 = error. */
+extern int mesg_implicit_function_declaration;
+
/* Nonzero enables objc features. */
#define doing_objc_thang \
OpenPOWER on IntegriCloud