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]
Other format: [Raw text]

[janitor] Remove redundand declarations


Committed as obvious after bootstrapping on x86_64-linux-gnu,

Andreas

2003-06-19  Andreas Jaeger  <aj@suse.de>

	* c-tree.h: Remove declaration of poplevel.

	* tree.h: Remove declaration of approx_sqrt.

	* c-lex.c: Remove redundant declaration of asm_out_file.

	* flags.h: Remove declaration of warn_unknown_pragma and
	main_input_filename.

	* rtl.h: Remove functions from fold-const.c since they're already
	declared in tree.h.

	* regs.h: Remove redundant declaration of reg_names.

cp:

	* cp-tree.h: Remove duplicated declarations.

============================================================
Index: gcc/cp/cp-tree.h
--- cp/cp-tree.h	18 Jun 2003 19:17:03 -0000	1.855
+++ cp/cp-tree.h	19 Jun 2003 10:08:11 -0000
@@ -3587,7 +3587,6 @@ extern int global_bindings_p			(void);
 extern int kept_level_p				(void);
 extern tree getdecls				(void);
 extern void pushlevel				(int);
-extern tree poplevel				(int,int, int);
 extern void insert_block			(tree);
 extern void set_block				(tree);
 extern tree pushdecl				(tree);
@@ -3762,9 +3761,7 @@ extern void comdat_linkage (tree);
 extern void import_export_vtable (tree, tree, int);
 extern void import_export_decl (tree);
 extern void import_export_tinfo	(tree, tree, bool);
-extern tree build_cleanup			(tree);
 extern void finish_file				(void);
-extern tree build_expr_from_tree		(tree);
 extern tree build_cleanup			(tree);
 extern tree build_expr_from_tree		(tree);
 extern tree build_offset_ref_call_from_tree     (tree, tree);
============================================================
Index: gcc/c-lex.c
--- gcc/c-lex.c	1 May 2003 16:13:27 -0000	1.203
+++ gcc/c-lex.c	19 Jun 2003 10:08:11 -0000
@@ -52,9 +52,6 @@ static unsigned int src_lineno;
 static int header_time, body_time;
 static splay_tree file_info_tree;
 
-/* File used for outputting assembler code.  */
-extern FILE *asm_out_file;
-
 #undef WCHAR_TYPE_SIZE
 #define WCHAR_TYPE_SIZE TYPE_PRECISION (wchar_type_node)
 
============================================================
Index: gcc/c-tree.h
--- gcc/c-tree.h	11 Apr 2003 04:26:49 -0000	1.113
+++ gcc/c-tree.h	19 Jun 2003 10:08:12 -0000
@@ -175,7 +175,6 @@ extern int global_bindings_p			PARAMS ((
 extern int kept_level_p				PARAMS ((void));
 extern tree getdecls				PARAMS ((void));
 extern void pushlevel				PARAMS ((int));
-extern tree poplevel				PARAMS ((int,int, int));
 extern void insert_block			PARAMS ((tree));
 extern void set_block				PARAMS ((tree));
 extern tree pushdecl				PARAMS ((tree));
============================================================
Index: gcc/flags.h
--- gcc/flags.h	18 Jun 2003 19:43:48 -0000	1.112
+++ gcc/flags.h	19 Jun 2003 10:08:12 -0000
@@ -1,5 +1,6 @@
 /* Compilation switch flag definitions for GCC.
-   Copyright (C) 1987, 1988, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002
+   Copyright (C) 1987, 1988, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002,
+   2003
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -22,9 +23,6 @@ Software Foundation, 59 Temple Place - S
 #ifndef GCC_FLAGS_H
 #define GCC_FLAGS_H
 
-/* Name of the input .c file being compiled.  */
-extern const char *main_input_filename;
-
 enum debug_info_type
 {
   NO_DEBUG,	    /* Write no debug info.  */
@@ -113,14 +111,6 @@ extern int warn_inline;
 /* Nonzero to warn about variables used before they are initialized.  */
 
 extern int warn_uninitialized;
-
-/* Zero if unknown pragmas are ignored
-   One if the compiler should warn about an unknown pragma not in
-   a system include file.
-   Greater than one if the compiler should warn for all unknown
-   pragmas.  */
-
-extern int warn_unknown_pragmas;
 
 /* Nonzero means warn about all declarations which shadow others.  */
 
============================================================
Index: gcc/regs.h
--- gcc/regs.h	28 Feb 2003 10:11:47 -0000	1.27
+++ gcc/regs.h	19 Jun 2003 10:08:12 -0000
@@ -1,6 +1,6 @@
 /* Define per-register tables for data flow info and register allocation.
    Copyright (C) 1987, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000 Free Software Foundation, Inc.
+   1999, 2000, 2003 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -157,10 +157,6 @@ extern short *reg_renumber;
    saying whether that reg is ever used.  */
 
 extern char regs_ever_live[FIRST_PSEUDO_REGISTER];
-
-/* Vector indexed by hardware reg giving its name.  */
-
-extern const char * reg_names[FIRST_PSEUDO_REGISTER];
 
 /* For each hard register, the widest mode object that it can contain.
    This will be a MODE_INT mode if the register can hold integers.  Otherwise
============================================================
Index: gcc/rtl.h
--- gcc/rtl.h	18 Jun 2003 19:43:49 -0000	1.417
+++ gcc/rtl.h	19 Jun 2003 10:08:13 -0000
@@ -2240,36 +2240,6 @@ extern void end_branch_prob		PARAMS ((vo
 extern bool reg_to_stack		PARAMS ((rtx, FILE *));
 #endif
 
-/* In fold-const.c */
-extern int add_double		PARAMS ((unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 unsigned HOST_WIDE_INT *,
-					 HOST_WIDE_INT *));
-extern int neg_double		PARAMS ((unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 unsigned HOST_WIDE_INT *,
-					 HOST_WIDE_INT *));
-extern int mul_double		PARAMS ((unsigned HOST_WIDE_INT,
-					 HOST_WIDE_INT,
-					 unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 unsigned HOST_WIDE_INT *,
-					 HOST_WIDE_INT *));
-extern void lshift_double	PARAMS ((unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 HOST_WIDE_INT, unsigned int,
-					 unsigned HOST_WIDE_INT *,
-					 HOST_WIDE_INT *, int));
-extern void rshift_double	PARAMS ((unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 HOST_WIDE_INT, unsigned int,
-					 unsigned HOST_WIDE_INT *,
-					 HOST_WIDE_INT *, int));
-extern void lrotate_double	PARAMS ((unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 HOST_WIDE_INT, unsigned int,
-					 unsigned HOST_WIDE_INT *,
-					 HOST_WIDE_INT *));
-extern void rrotate_double	PARAMS ((unsigned HOST_WIDE_INT, HOST_WIDE_INT,
-					 HOST_WIDE_INT, unsigned int,
-					 unsigned HOST_WIDE_INT *,
-					 HOST_WIDE_INT *));
-
 /* In calls.c */
 enum libcall_type
 {
============================================================
Index: gcc/tree.h
--- gcc/tree.h	16 Jun 2003 18:56:09 -0000	1.413
+++ gcc/tree.h	19 Jun 2003 10:08:15 -0000
@@ -1999,10 +1999,6 @@ enum ptrmemfunc_vbit_where_t

 #define NULL_TREE (tree) NULL
 
-/* Approximate positive square root of a host double.  This is for
-   statistical reports, not code generation.  */
-extern double approx_sqrt		PARAMS ((double));
-
 extern tree decl_assembler_name		PARAMS ((tree));
 
 /* Compute the number of bytes occupied by 'node'.  This routine only

-- 
 Andreas Jaeger, SuSE Linux AG, aj@suse.de, http://www.suse.de/~aj
  GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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