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]

[patch] gcc/*.h: Remove unused prototypes.


Hi,

Attached is a patch remove unused prototypes for which the
corresponding functions do not exist.

Bootstrapped on i686-pc-linux-gnu.  Committed as obvious.

Kazu Hirata

2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>

	* c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
	rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
	Remove unused prototypes.

Index: c-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-tree.h,v
retrieving revision 1.190
diff -u -d -p -r1.190 c-tree.h
--- c-tree.h	19 Dec 2004 04:42:09 -0000	1.190
+++ c-tree.h	14 Jan 2005 12:28:56 -0000
@@ -434,7 +434,6 @@ extern int c_cannot_inline_tree_fn (tree
 extern bool c_objc_common_init (void);
 extern bool c_missing_noreturn_ok_p (tree);
 extern tree c_objc_common_truthvalue_conversion (tree expr);
-extern int defer_fn (tree);
 extern bool c_warn_unused_global_decl (tree);
 extern void c_initialize_diagnostics (diagnostic_context *);
 
Index: coverage.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/coverage.h,v
retrieving revision 1.6
diff -u -d -p -r1.6 coverage.h
--- coverage.h	15 Oct 2004 14:47:06 -0000	1.6
+++ coverage.h	14 Jan 2005 12:28:56 -0000
@@ -26,7 +26,6 @@ Software Foundation, 59 Temple Place - S
 
 extern void coverage_init (const char *);
 extern void coverage_finish (void);
-extern void coverage_read_counts_file (void);
 
 /* Complete the coverage information for the current function. Once
    per function.  */
Index: langhooks-def.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/langhooks-def.h,v
retrieving revision 1.94
diff -u -d -p -r1.94 langhooks-def.h
--- langhooks-def.h	14 Oct 2004 23:15:19 -0000	1.94
+++ langhooks-def.h	14 Jan 2005 12:28:56 -0000
@@ -67,8 +67,6 @@ extern void lhd_register_builtin_type (t
 extern bool lhd_decl_ok_for_sibcall (tree);
 extern const char *lhd_comdat_group (tree);
 extern tree lhd_expr_size (tree);
-extern bool lhd_decl_uninit (tree);
-extern tree lhd_get_callee_fndecl (tree);
 extern size_t lhd_tree_size (enum tree_code);
 
 /* Declarations of default tree inlining hooks.  */
Index: optabs.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/optabs.h,v
retrieving revision 1.43
diff -u -d -p -r1.43 optabs.h
--- optabs.h	23 Dec 2004 07:58:37 -0000	1.43
+++ optabs.h	14 Jan 2005 12:28:56 -0000
@@ -488,11 +488,6 @@ extern enum insn_code can_extend_p (enum
 extern rtx gen_extend_insn (rtx, rtx, enum machine_mode,
 			    enum machine_mode, int);
 
-/* Initialize the tables that control conversion between fixed and
-   floating values.  */
-extern void init_fixtab (void);
-extern void init_floattab (void);
-
 /* Call this to reset the function entry for one optab.  */
 extern void set_optab_libfunc (optab, enum machine_mode, const char *);
 extern void set_conv_libfunc (convert_optab, enum machine_mode,
Index: output.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/output.h,v
retrieving revision 1.150
diff -u -d -p -r1.150 output.h
--- output.h	20 Dec 2004 02:08:53 -0000	1.150
+++ output.h	14 Jan 2005 12:28:56 -0000
@@ -144,10 +144,6 @@ extern void leaf_renumber_regs_insn (rtx
 /* Locate the proper template for the given insn-code.  */
 extern const char *get_insn_template (int, rtx);
 
-/* Add function NAME to the weak symbols list.  VALUE is a weak alias
-   associated with NAME.  */
-extern int add_weak (tree, const char *, const char *);
-
 /* Functions in flow.c */
 extern int regno_clobbered_at_setjmp (int);
 
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.h,v
retrieving revision 1.529
diff -u -d -p -r1.529 rtl.h
--- rtl.h	1 Dec 2004 18:13:31 -0000	1.529
+++ rtl.h	14 Jan 2005 12:28:57 -0000
@@ -2060,7 +2060,6 @@ extern void init_reg_modes_once (void);
 extern void init_regs (void);
 extern void init_fake_stack_mems (void);
 extern void init_reg_sets (void);
-extern void regset_release_memory (void);
 extern void regclass_init (void);
 extern void regclass (rtx, int, FILE *);
 extern void reg_scan (rtx, unsigned int, int);
@@ -2108,15 +2107,11 @@ extern void emit_library_call (rtx, enum
 extern rtx emit_library_call_value (rtx, rtx, enum libcall_type,
 				    enum machine_mode, int, ...);
 
-/* In unroll.c */
-extern int set_dominates_use (int, int, int, rtx, rtx);
-
 /* In varasm.c */
 extern int in_data_section (void);
 extern void init_varasm_once (void);
 
 /* In rtl.c */
-extern void init_rtl (void);
 extern void traverse_md_constants (int (*) (void **, void *), void *);
 struct md_constant { char *name, *value; };
 
Index: targhooks.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/targhooks.h,v
retrieving revision 2.24
diff -u -d -p -r2.24 targhooks.h
--- targhooks.h	30 Dec 2004 03:07:37 -0000	2.24
+++ targhooks.h	14 Jan 2005 12:28:57 -0000
@@ -46,8 +46,6 @@ extern void default_unwind_emit (FILE *,
 
 extern bool default_scalar_mode_supported_p (enum machine_mode);
 
-extern bool default_vect_misaligned_mem_ok (enum machine_mode);
-
 /* These are here, and not in hooks.[ch], because not all users of
    hooks.h include tm.h, and thus we don't have CUMULATIVE_ARGS.  */
 
Index: tree-flow.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-flow.h,v
retrieving revision 2.75
diff -u -d -p -r2.75 tree-flow.h
--- tree-flow.h	10 Dec 2004 21:54:41 -0000	2.75
+++ tree-flow.h	14 Jan 2005 12:28:58 -0000
@@ -572,7 +572,6 @@ DEF_VEC_MALLOC_P (tree_on_heap);
 
 /* In tree-ssa.c  */
 extern void init_tree_ssa (void);
-extern void debug_reaching_defs (void);
 extern void dump_tree_ssa (FILE *);
 extern void debug_tree_ssa (void);
 extern void debug_def_blocks (void);
Index: tree-mudflap.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-mudflap.h,v
retrieving revision 2.3
diff -u -d -p -r2.3 tree-mudflap.h
--- tree-mudflap.h	5 Jul 2004 18:12:35 -0000	2.3
+++ tree-mudflap.h	14 Jan 2005 12:28:58 -0000
@@ -24,8 +24,6 @@ Software Foundation, 59 Temple Place - S
 
 /* Instrumentation.  */
 extern void mudflap_init (void);
-extern void mudflap_c_function_decls (tree);
-extern void mudflap_c_function_ops (tree);
 extern void mudflap_enqueue_decl (tree);
 extern void mudflap_enqueue_constant (tree);
 extern void mudflap_finish_file (void);
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.677
diff -u -d -p -r1.677 tree.h
--- tree.h	7 Jan 2005 09:24:49 -0000	1.677
+++ tree.h	14 Jan 2005 12:28:58 -0000
@@ -2991,7 +2991,6 @@ enum attribute_flags
 
 extern tree merge_decl_attributes (tree, tree);
 extern tree merge_type_attributes (tree, tree);
-extern void default_register_cpp_builtins (struct cpp_reader *);
 
 /* Given a tree node and a string, return nonzero if the tree node is
    a valid attribute name for the string.  */
@@ -3439,7 +3438,6 @@ extern void change_decl_assembler_name (
 extern int type_num_arguments (tree);
 extern bool associative_tree_code (enum tree_code);
 extern bool commutative_tree_code (enum tree_code);
-extern tree get_case_label (tree);
 extern tree upper_bound_in_type (tree, tree);
 extern tree lower_bound_in_type (tree, tree);
 extern int operand_equal_for_phi_arg_p (tree, tree);
@@ -3632,9 +3630,6 @@ extern bool debug_find_tree (tree, tree)
    data structures from the inliner.  */
 extern tree unsave_expr_now (tree);
 
-/* In expr.c */
-extern void check_max_integer_computation_mode (tree);
-
 /* In emit-rtl.c */
 extern rtx emit_line_note (location_t);
 


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