Patchwork [committed] Remove forward declarations from genrecog.c

login
register
mail settings
Submitter Richard Sandiford
Date May 28, 2011, 5:27 p.m.
Message ID <87boymhh1h.fsf@firetop.home>
Download mbox | patch
Permalink /patch/97808/
State New
Headers show

Comments

Richard Sandiford - May 28, 2011, 5:27 p.m.
As the subject says.  Tested on x86_64-linux-gnu and mips-linux-gnu.
Applied as preapproved.

Richard


gcc/
	* genrecog.c: Remove redundant forward declarations.

Patch

Index: gcc/genrecog.c
===================================================================
--- gcc/genrecog.c	2011-05-28 17:08:48.000000000 +0100
+++ gcc/genrecog.c	2011-05-28 18:25:51.000000000 +0100
@@ -221,83 +221,6 @@  #define IS_SPLIT(X) ((X) != RECOG)
    since we are given that instruction's pattern as x0.  */
 static struct position *peep2_insn_pos_list = &root_pos;
 
-static struct decision *new_decision
-  (struct position *, struct decision_head *);
-static struct decision_test *new_decision_test
-  (enum decision_type, struct decision_test ***);
-static rtx find_operand
-  (rtx, int, rtx);
-static rtx find_matching_operand
-  (rtx, int);
-static void validate_pattern
-  (rtx, rtx, rtx, int);
-static struct decision *add_to_sequence
-  (rtx, struct decision_head *, struct position *, enum routine_type, int);
-
-static int maybe_both_true_2
-  (struct decision_test *, struct decision_test *);
-static int maybe_both_true_1
-  (struct decision_test *, struct decision_test *);
-static int maybe_both_true
-  (struct decision *, struct decision *, int);
-
-static int nodes_identical_1
-  (struct decision_test *, struct decision_test *);
-static int nodes_identical
-  (struct decision *, struct decision *);
-static void merge_accept_insn
-  (struct decision *, struct decision *);
-static void merge_trees
-  (struct decision_head *, struct decision_head *);
-
-static void factor_tests
-  (struct decision_head *);
-static void simplify_tests
-  (struct decision_head *);
-static int break_out_subroutines
-  (struct decision_head *, int);
-static void find_afterward
-  (struct decision_head *, struct decision *);
-
-static void change_state
-  (struct position *, struct position *, const char *);
-static void print_code
-  (enum rtx_code);
-static void write_afterward
-  (struct decision *, struct decision *, const char *);
-static struct decision *write_switch
-  (struct decision *, int);
-static void write_cond
-  (struct decision_test *, int, enum routine_type);
-static void write_action
-  (struct decision *, struct decision_test *, int, int,
-   struct decision *, enum routine_type);
-static int is_unconditional
-  (struct decision_test *, enum routine_type);
-static int write_node
-  (struct decision *, int, enum routine_type);
-static void write_tree_1
-  (struct decision_head *, int, enum routine_type);
-static void write_tree
-  (struct decision_head *, struct position *, enum routine_type, int);
-static void write_subroutine
-  (struct decision_head *, enum routine_type);
-static void write_subroutines
-  (struct decision_head *, enum routine_type);
-static void write_header
-  (void);
-
-static struct decision_head make_insn_sequence
-  (rtx, enum routine_type);
-static void process_tree
-  (struct decision_head *, enum routine_type);
-
-static void debug_decision_0
-  (struct decision *, int, int);
-static void debug_decision_1
-  (struct decision *, int);
-static void debug_decision_2
-  (struct decision_test *);
 extern void debug_decision
   (struct decision *);
 extern void debug_decision_list