aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-04-12 22:31:56 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-04-12 22:31:56 +0000
commit48857160b255960688998a5ab4da16cc067ad407 (patch)
tree48b09d9ff7415cb28ff7326b37ba516af171ec6c /gcc
parent44c4c11d5dec99ba5d3f59628fbc3dce23596634 (diff)
downloadgcc-48857160b255960688998a5ab4da16cc067ad407.zip
gcc-48857160b255960688998a5ab4da16cc067ad407.tar.gz
gcc-48857160b255960688998a5ab4da16cc067ad407.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog11
-rw-r--r--gcc/cp/cp-tree.h6
-rw-r--r--gcc/cp/decl.c4
-rw-r--r--gcc/cp/decl2.c9
-rw-r--r--gcc/cp/repo.c1
5 files changed, 11 insertions, 20 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 05d1b74..8a00437 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,16 @@
2001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * 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 <ghazi@caip.rutgers.edu>
+
* cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
set_block, pushdecl, getdecls, gettags, init_decl_processing,
maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index b14fa92..8e8574d 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 0e97ad1..ac9f058 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 ded15a7..d49df73 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 897648a..6dfcafc 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;