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] bb-reorder.c: Make two variables static.


Hi,

Attached is a patch to make two variables static as they are used only
in bb-reorder.c.

Tested on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>

	* bb-reorder.c (max_entry_frequency, max_entry_frequency):
	Make them static.

Index: bb-reorder.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/bb-reorder.c,v
retrieving revision 1.92
diff -u -d -p -r1.92 bb-reorder.c
--- bb-reorder.c	25 Feb 2005 07:13:25 -0000	1.92
+++ bb-reorder.c	5 Mar 2005 21:06:54 -0000
@@ -153,8 +153,8 @@ struct trace
 };
 
 /* Maximum frequency and count of one of the entry blocks.  */
-int max_entry_frequency;
-gcov_type max_entry_count;
+static int max_entry_frequency;
+static gcov_type max_entry_count;
 
 /* Local function prototypes.  */
 static void find_traces (int *, struct trace *);


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