[patch] recog.c: Make peephole2_optimize static.

Kazu Hirata kazu@codesourcery.com
Sat Jan 28 15:19:00 GMT 2006


Hi,

Attached is a patch to make peephole2_optimize static.

Bootstrapped on x86_64-pc-linux-gnu.  Committed as preapproved.

Kazu Hirata

2006-01-28  Kazu Hirata  <kazu@codesourcery.com>

	* recog.c (peephole2_optimize): Make it static.
	* recog.h: Remove the prototype for peephole2_optimize.

Index: recog.c
===================================================================
--- recog.c	(revision 110321)
+++ recog.c	(working copy)
@@ -3033,7 +3033,7 @@ peep2_find_free_register (int from, int 
 
 /* Perform the peephole2 optimization pass.  */
 
-void
+static void
 peephole2_optimize (FILE *dump_file ATTRIBUTE_UNUSED)
 {
   rtx insn, prev;
Index: recog.h
===================================================================
--- recog.h	(revision 110321)
+++ recog.h	(working copy)
@@ -119,7 +119,6 @@ extern int peep2_reg_dead_p (int, rtx);
 extern rtx peep2_find_free_register (int, int, const char *,
 				     enum machine_mode, HARD_REG_SET *);
 #endif
-extern void peephole2_optimize (FILE *);
 extern rtx peephole2_insns (rtx, rtx, int *);
 
 extern int store_data_bypass_p (rtx, rtx);



More information about the Gcc-patches mailing list