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] recog.c: Make verify_changes static.


Hi,

Attached is a patch to make verify_changes static as it is used only
in recog.c.

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

Kazu Hirata

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

	* recog.c (verify_changes): Make it static.
	* recog.h: Remove the corresponding prototype.

Index: recog.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/recog.c,v
retrieving revision 1.220
diff -u -d -p -r1.220 recog.c
--- recog.c	2 Mar 2005 22:02:32 -0000	1.220
+++ recog.c	5 Mar 2005 23:10:37 -0000
@@ -297,7 +297,7 @@ num_changes_pending (void)
 /* Tentatively apply the changes numbered NUM and up.
    Return 1 if all changes are valid, zero otherwise.  */
 
-int
+static int
 verify_changes (int num)
 {
   int i;
Index: recog.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/recog.h,v
retrieving revision 1.54
diff -u -d -p -r1.54 recog.h
--- recog.h	2 Mar 2005 22:02:32 -0000	1.54
+++ recog.h	5 Mar 2005 23:10:37 -0000
@@ -75,7 +75,6 @@ extern int check_asm_operands (rtx);
 extern int asm_operand_ok (rtx, const char *);
 extern int validate_change (rtx, rtx *, rtx, int);
 extern int insn_invalid_p (rtx);
-extern int verify_changes (int);
 extern void confirm_change_group (void);
 extern int apply_change_group (void);
 extern int num_validated_changes (void);


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