This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch installed for prototypes.
- To: egcs-patches at egcs dot cygnus dot com
- Subject: patch installed for prototypes.
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 24 Oct 1999 15:24:23 -0400 (EDT)
I installed the following to fix a few prototype nits.
--Kaveh
1999-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* final.c (peephole): Delete prototype.
* gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
(pre_insert_copies): Remove unused variable `bb'.
* genrecog.c (debug_decision_0, debug_decision_list, main): Add
prototypes.
* output.h (peephole): Add prototype.
diff -rup orig/egcs-CVS19991024/gcc/final.c egcs-CVS19991024/gcc/final.c
--- orig/egcs-CVS19991024/gcc/final.c Sun Oct 3 12:28:32 1999
+++ egcs-CVS19991024/gcc/final.c Sun Oct 24 14:22:30 1999
@@ -285,10 +285,6 @@ struct bb_str {
int length; /* string length */
};
-#ifdef HAVE_peephole
-extern rtx peephole PROTO((rtx));
-#endif
-
static struct bb_str *sbb_head = 0; /* Head of string list. */
static struct bb_str **sbb_tail = &sbb_head; /* Ptr to store next bb str */
static int sbb_label_num = 0; /* Last label used */
diff -rup orig/egcs-CVS19991024/gcc/gcse.c egcs-CVS19991024/gcc/gcse.c
--- orig/egcs-CVS19991024/gcc/gcse.c Sun Oct 17 07:42:42 1999
+++ egcs-CVS19991024/gcc/gcse.c Sun Oct 24 14:16:39 1999
@@ -621,9 +621,9 @@ static int can_disregard_other_sets PR
static int handle_avail_expr PROTO ((rtx, struct expr *));
static int classic_gcse PROTO ((void));
static int one_classic_gcse_pass PROTO ((int));
-
static void invalidate_nonnull_info PROTO ((rtx, rtx));
-
+static rtx process_insert_insn PROTO ((struct expr *));
+static int pre_edge_insert PROTO ((struct edge_list *, struct expr **));
/* Entry point for global common subexpression elimination.
F is the first instruction in the function. */
@@ -4553,7 +4553,7 @@ pre_insert_copy_insn (expr, insn)
static void
pre_insert_copies ()
{
- int i, bb;
+ int i;
/* For each available expression in the table, copy the result to
`reaching_reg' if the expression reaches a deleted one.
diff -rup orig/egcs-CVS19991024/gcc/genrecog.c egcs-CVS19991024/gcc/genrecog.c
--- orig/egcs-CVS19991024/gcc/genrecog.c Fri Oct 15 07:43:09 1999
+++ egcs-CVS19991024/gcc/genrecog.c Sun Oct 24 14:28:01 1999
@@ -302,12 +302,16 @@ static void process_tree
static void record_insn_name
PROTO((int, const char *));
+static void debug_decision_0
+ PROTO((struct decision *, int, int));
static void debug_decision_1
PROTO((struct decision *, int));
static void debug_decision_2
PROTO((struct decision_test *));
extern void debug_decision
PROTO((struct decision *));
+extern void debug_decision_list
+ PROTO((struct decision *));
static void
message_with_line VPROTO ((int lineno, const char *msg, ...))
@@ -2477,6 +2481,8 @@ process_tree (head, subroutine_type)
write_subroutine (head, subroutine_type);
}
+extern int main PROTO ((int, char **));
+
int
main (argc, argv)
int argc;
diff -rup orig/egcs-CVS19991024/gcc/output.h egcs-CVS19991024/gcc/output.h
--- orig/egcs-CVS19991024/gcc/output.h Sat Oct 9 15:47:18 1999
+++ egcs-CVS19991024/gcc/output.h Sun Oct 24 14:24:13 1999
@@ -313,6 +326,10 @@ extern void output_deferred_addressed_co
/* Return the size of the constant pool. */
extern int get_pool_size PROTO((void));
+
+#ifdef HAVE_peephole
+extern rtx peephole PROTO((rtx));
+#endif
#ifdef TREE_CODE
/* Write all the constants in the constant pool. */