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

2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>

	* basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
	tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
	tree-ssa-live.h, tree.h: Remove unused prototypes.

Index: basic-block.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/basic-block.h,v
retrieving revision 1.226
diff -u -d -p -r1.226 basic-block.h
--- basic-block.h	10 Nov 2004 09:28:29 -0000	1.226
+++ basic-block.h	16 Nov 2004 00:59:52 -0000
@@ -452,7 +452,6 @@ extern void compute_dominance_frontiers 
 extern void dump_edge_info (FILE *, edge, int);
 extern void brief_dump_cfg (FILE *);
 extern void clear_edges (void);
-extern void mark_critical_edges (void);
 extern rtx first_insn_after_basic_block_note (basic_block);
 
 /* Structure to group all of the information to process IF-THEN and
@@ -716,10 +715,6 @@ extern struct edge_list *pre_edge_rev_lc
 extern void compute_available (sbitmap *, sbitmap *, sbitmap *, sbitmap *);
 extern int optimize_mode_switching (FILE *);
 
-/* In emit-rtl.c.  */
-extern rtx emit_block_insn_after (rtx, rtx, basic_block);
-extern rtx emit_block_insn_before (rtx, rtx, basic_block);
-
 /* In predict.c */
 extern void estimate_probability (struct loops *);
 extern void expected_value_to_br_prob (void);
Index: c-common.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.h,v
retrieving revision 1.270
diff -u -d -p -r1.270 c-common.h
--- c-common.h	14 Nov 2004 12:53:30 -0000	1.270
+++ c-common.h	16 Nov 2004 00:59:53 -0000
@@ -838,8 +838,6 @@ extern rtx c_expand_expr (tree, rtx, enu
 
 extern tree c_staticp (tree);
 
-extern int c_common_unsafe_for_reeval (tree);
-
 extern void init_c_lex (void);
 
 extern void c_cpp_builtins (cpp_reader *);
Index: df.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/df.h,v
retrieving revision 1.28
diff -u -d -p -r1.28 df.h
--- df.h	10 Jun 2004 15:01:01 -0000	1.28
+++ df.h	16 Nov 2004 00:59:54 -0000
@@ -267,8 +267,6 @@ extern int df_ref_reg_replace (struct df
 
 extern int df_ref_remove (struct df *, struct ref *);
 
-extern int df_insn_reg_replace (struct df *, basic_block, rtx, rtx, rtx);
-
 extern int df_insn_mem_replace (struct df *, basic_block, rtx, rtx, rtx);
 
 extern struct ref *df_bb_def_use_swap (struct df *, basic_block, rtx, rtx,
Index: expr.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.h,v
retrieving revision 1.179
diff -u -d -p -r1.179 expr.h
--- expr.h	14 Nov 2004 06:22:56 -0000	1.179
+++ expr.h	16 Nov 2004 00:59:54 -0000
@@ -545,9 +545,6 @@ extern rtx expr_size (tree);
    if the size can vary or is larger than an integer.  */
 extern HOST_WIDE_INT int_expr_size (tree);
 
-/* Return the address of the trampoline for entering nested fn FUNCTION.  */
-extern rtx trampoline_address (tree);
-
 /* Return an rtx that refers to the value returned by a function
    in its original home.  This becomes invalid if any more code is emitted.  */
 extern rtx hard_function_value (tree, tree, int);
Index: output.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/output.h,v
retrieving revision 1.148
diff -u -d -p -r1.148 output.h
--- output.h	11 Nov 2004 23:15:46 -0000	1.148
+++ output.h	16 Nov 2004 00:59:55 -0000
@@ -149,7 +149,6 @@ extern const char *get_insn_template (in
 extern int add_weak (tree, const char *, const char *);
 
 /* Functions in flow.c */
-extern void allocate_for_life_analysis (void);
 extern int regno_clobbered_at_setjmp (int);
 
 /* Functions in varasm.c.  */
@@ -282,7 +281,6 @@ extern void assemble_zeros (unsigned HOS
 
 /* Assemble an alignment pseudo op for an ALIGN-bit boundary.  */
 extern void assemble_align (int);
-extern void assemble_eh_align (int);
 
 /* Assemble a string constant with the specified C string as contents.  */
 extern void assemble_string (const char *, int);
@@ -292,7 +290,6 @@ extern void assemble_external_libcall (r
 
 /* Assemble a label named NAME.  */
 extern void assemble_label (const char *);
-extern void assemble_eh_label (const char *);
 
 /* Output to FILE a reference to the assembler name of a C-level name NAME.
    If NAME starts with a *, the rest of NAME is output verbatim.
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.h,v
retrieving revision 1.524
diff -u -d -p -r1.524 rtl.h
--- rtl.h	14 Nov 2004 12:55:15 -0000	1.524
+++ rtl.h	16 Nov 2004 00:59:57 -0000
@@ -1336,7 +1336,6 @@ extern int ceil_log2 (unsigned HOST_WIDE
 
 /* In builtins.c */
 extern rtx expand_builtin_expect_jump (tree, rtx, rtx);
-extern void purge_builtin_constant_p (void);
 
 /* In explow.c */
 extern void set_stack_check_libfunc (rtx);
@@ -1353,7 +1352,6 @@ extern rtx emit_copy_of_insn_after (rtx,
 extern void set_reg_attrs_from_mem (rtx, rtx);
 extern void set_mem_attrs_from_reg (rtx, rtx);
 extern void set_reg_attrs_for_parm (rtx, rtx);
-extern void set_reg_pointer_align (rtx, unsigned int);
 extern int mem_expr_equal_p (tree, tree);
 
 /* In rtl.c */
@@ -1901,7 +1899,6 @@ extern int comparison_dominates_p (enum 
 extern int condjump_p (rtx);
 extern int any_condjump_p (rtx);
 extern int any_uncondjump_p (rtx);
-extern int safe_to_remove_jump_p (rtx);
 extern rtx pc_set (rtx);
 extern rtx condjump_label (rtx);
 extern int simplejump_p (rtx);
Index: tree-chrec.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-chrec.h,v
retrieving revision 2.5
diff -u -d -p -r2.5 tree-chrec.h
--- tree-chrec.h	13 Oct 2004 03:48:03 -0000	2.5
+++ tree-chrec.h	16 Nov 2004 00:59:57 -0000
@@ -74,7 +74,6 @@ extern tree chrec_type (tree);
 /* Operations.  */
 extern tree chrec_apply (unsigned, tree, tree);
 extern tree chrec_replace_initial_condition (tree, tree);
-extern tree update_initial_condition_to_origin (tree);
 extern tree initial_condition (tree);
 extern tree initial_condition_in_loop_num (tree, unsigned);
 extern tree evolution_part_in_loop_num (tree, unsigned);
Index: tree-flow.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-flow.h,v
retrieving revision 2.64
diff -u -d -p -r2.64 tree-flow.h
--- tree-flow.h	16 Nov 2004 00:08:03 -0000	2.64
+++ tree-flow.h	16 Nov 2004 00:59:58 -0000
@@ -474,9 +474,7 @@ extern tree *last_stmt_ptr (basic_block)
 extern tree last_and_only_stmt (basic_block);
 extern edge find_taken_edge (basic_block, tree);
 extern void cfg_remove_useless_stmts (void);
-extern edge thread_edge (edge, basic_block);
 extern basic_block label_to_block (tree);
-extern void tree_optimize_tail_calls (bool, enum tree_dump_index);
 extern void bsi_insert_on_edge (edge, tree);
 extern basic_block bsi_insert_on_edge_immediate (edge, tree);
 extern void bsi_commit_one_edge_insert (edge, basic_block *);
@@ -566,7 +564,6 @@ typedef bool (*walk_use_def_chains_fn) (
 
 /* In tree-ssa.c  */
 extern void init_tree_ssa (void);
-extern void dump_reaching_defs (FILE *);
 extern void debug_reaching_defs (void);
 extern void dump_tree_ssa (FILE *);
 extern void debug_tree_ssa (void);
Index: tree-scalar-evolution.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-scalar-evolution.h,v
retrieving revision 2.2
diff -u -d -p -r2.2 tree-scalar-evolution.h
--- tree-scalar-evolution.h	12 Jul 2004 19:31:16 -0000	2.2
+++ tree-scalar-evolution.h	16 Nov 2004 00:59:58 -0000
@@ -30,7 +30,6 @@ extern void scev_reset (void);
 extern void scev_finalize (void);
 extern tree analyze_scalar_evolution (struct loop *, tree);
 extern tree instantiate_parameters (struct loop *, tree);
-extern void eliminate_redundant_checks (void);
 extern void gather_stats_on_scev_database (void);
 extern void scev_analysis (void);
 extern bool simple_iv (struct loop *, tree, tree, tree *, tree *);
Index: tree-ssa-live.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-live.h,v
retrieving revision 2.10
diff -u -d -p -r2.10 tree-ssa-live.h
--- tree-ssa-live.h	8 Nov 2004 22:36:48 -0000	2.10
+++ tree-ssa-live.h	16 Nov 2004 00:59:59 -0000
@@ -64,7 +64,6 @@ extern void dump_var_map (FILE *, var_ma
 extern int var_union (var_map, tree, tree);
 extern void change_partition_var (var_map, tree, int);
 extern void compact_var_map (var_map, int);
-extern tree make_ssa_temp (tree);
 #ifdef ENABLE_CHECKING
 extern void register_ssa_partition_check (tree ssa_var);
 #endif
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.655
diff -u -d -p -r1.655 tree.h
--- tree.h	15 Nov 2004 00:18:33 -0000	1.655
+++ tree.h	16 Nov 2004 01:00:03 -0000
@@ -3010,10 +3010,6 @@ extern tree merge_decl_attributes (tree,
 extern tree merge_type_attributes (tree, tree);
 extern void default_register_cpp_builtins (struct cpp_reader *);
 
-/* Return 1 if an attribute and its arguments are valid for a decl or type.  */
-
-extern int valid_machine_attribute (tree, tree, tree, tree);
-
 /* Given a tree node and a string, return nonzero if the tree node is
    a valid attribute name for the string.  */
 
@@ -3470,7 +3466,6 @@ extern tree lower_bound_in_type (tree, t
 /* In stmt.c */
 
 extern void expand_expr_stmt (tree);
-extern void expand_expr_stmt_value (tree, int, int);
 extern int warn_if_unused_value (tree, location_t);
 extern void expand_label (tree);
 extern void expand_goto (tree);
@@ -3629,7 +3624,6 @@ extern void free_temp_slots (void);
 extern void pop_temp_slots (void);
 extern void push_temp_slots (void);
 extern void preserve_temp_slots (rtx);
-extern void preserve_rtl_expr_temps (tree);
 extern int aggregate_value_p (tree, tree);
 extern void push_function_context (void);
 extern void pop_function_context (void);


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