From: Kaveh R. Ghazi Date: Thu, 12 Apr 2001 22:31:56 +0000 (+0000) Subject: cp-tree.h (warn_return_type, yylex): Delete redundant declarations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48857160b255960688998a5ab4da16cc067ad407;p=gcc.git cp-tree.h (warn_return_type, yylex): Delete redundant declarations. * cp-tree.h (warn_return_type, yylex): Delete redundant declarations. * decl.c (current_class_depth, global_namespace): Likewise. * decl2.c (current_class_depth, flag_gnu_xref): Likewise * repo.c (flag_use_repository): Likewise. From-SVN: r41314 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 05d1b74d324..8a0043716b4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,14 @@ +2001-04-12 Kaveh R. Ghazi + + * cp-tree.h (warn_return_type, yylex): Delete redundant + declarations. + + * decl.c (current_class_depth, global_namespace): Likewise. + + * decl2.c (current_class_depth, flag_gnu_xref): Likewise + + * repo.c (flag_use_repository): Likewise. + 2001-04-12 Kaveh R. Ghazi * cp-tree.h (pedantic, convert, global_bindings_p, insert_block, diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index b14fa92232c..8e8574d3f97 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -1009,11 +1009,6 @@ extern int warn_implicit; extern int warn_ctor_dtor_privacy; -/* Nonzero means warn about function definitions that default the return type - or that use a null return and have a return-type other than void. */ - -extern int warn_return_type; - /* Nonzero means warn about deprecated conversion from string constant to `char *'. */ @@ -4317,7 +4312,6 @@ extern tree finish_global_stmt_expr PARAMS ((tree)); /* in spew.c */ extern void init_spew PARAMS ((void)); extern int peekyylex PARAMS ((void)); -extern int yylex PARAMS ((void)); extern tree arbitrate_lookup PARAMS ((tree, tree, tree)); extern tree frob_opname PARAMS ((tree)); extern void maybe_snarf_defarg PARAMS ((void)); diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 0e97ad1fc1b..ac9f058f45a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -44,10 +44,6 @@ Boston, MA 02111-1307, USA. */ #include "ggc.h" #include "tm_p.h" -extern int current_class_depth; - -extern tree global_namespace; - extern int (*valid_lang_attribute) PARAMS ((tree, tree, tree, tree)); #ifndef BOOL_TYPE_SIZE diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index ded15a7f3ce..d49df731a45 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -92,8 +92,6 @@ static tree key_method PARAMS ((tree)); static int compare_options PARAMS ((const PTR, const PTR)); static tree get_guard_bits PARAMS ((tree)); -extern int current_class_depth; - /* A list of static class variables. This is needed, because a static class variable can be declared inside the class without an initializer, and then initialized, staticly, outside the class. */ @@ -358,11 +356,6 @@ int flag_default_inline = 1; int flag_rtti = 1; -/* Nonzero if we wish to output cross-referencing information - for the GNU class browser. */ - -extern int flag_gnu_xref; - /* Nonzero if we want to support huge (> 2^(sizeof(short)*8-1) bytes) objects. */ @@ -4164,8 +4157,6 @@ tree finish_decl_parsing (decl) tree decl; { - extern int current_class_depth; - switch (TREE_CODE (decl)) { case IDENTIFIER_NODE: diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c index 897648a0b28..6dfcafc24f3 100644 --- a/gcc/cp/repo.c +++ b/gcc/cp/repo.c @@ -48,7 +48,6 @@ static FILE *repo_file; static char *old_args, *old_dir, *old_main; -extern int flag_use_repository; static struct obstack temporary_obstack; extern struct obstack permanent_obstack;