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] regrename.c: Make two functions static.


Hi,

Attached is a patch to make two functions static.

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

Kazu Hirata

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

	* regrename.c (regrename_optimize, copyprop_hardreg_forward):
	Make them static.
	* rtl.h: Remove the prototypes for regrename_optimize and
	copyprop_hardreg_forward.

Index: regrename.c
===================================================================
--- regrename.c	(revision 109821)
+++ regrename.c	(working copy)
@@ -184,7 +184,7 @@ merge_overlapping_regs (basic_block b, H
 
 /* Perform register renaming on the current function.  */
 
-void
+static void
 regrename_optimize (void)
 {
   int tick[FIRST_PSEUDO_REGISTER];
@@ -1787,7 +1787,7 @@ copyprop_hardreg_forward_1 (basic_block 
 
 /* Main entry point for the forward copy propagation optimization.  */
 
-void
+static void
 copyprop_hardreg_forward (void)
 {
   struct value_data *all_vd;
Index: rtl.h
===================================================================
--- rtl.h	(revision 109821)
+++ rtl.h	(working copy)
@@ -2150,10 +2150,6 @@ extern int stack_regs_mentioned (rtx ins
 /* In toplev.c */
 extern GTY(()) rtx stack_limit_rtx;
 
-/* In regrename.c */
-extern void regrename_optimize (void);
-extern void copyprop_hardreg_forward (void);
-
 /* In predict.c */
 extern void invert_br_probabilities (rtx);
 extern bool expensive_function_p (int);


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