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] Remove validate_replace_src().


Hi,

Attached is a patch to remove validate_replace_src().

Doug Evans and Jeff Law introduced this function along with gcse.c
back in 1998.

I don't know when it was last used.

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

Kazu Hirata

2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>

	* recog.c (validate_replace_src): Remove.
	* recog.h: Remove the corresponding prototype.

Index: recog.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/recog.c,v
retrieving revision 1.197
diff -u -r1.197 recog.c
--- recog.c	6 Feb 2004 13:57:15 -0000	1.197
+++ recog.c	19 Feb 2004 17:11:28 -0000
@@ -700,15 +700,6 @@
   d.insn = insn;
   note_uses (&PATTERN (insn), validate_replace_src_1, &d);
 }
-
-/* Same as validate_replace_src_group, but validate by seeing if
-   INSN is still valid.  */
-int
-validate_replace_src (rtx from, rtx to, rtx insn)
-{
-  validate_replace_src_group (from, to, insn);
-  return apply_change_group ();
-}
 
 #ifdef HAVE_cc0
 /* Return 1 if the insn using CC0 set by INSN does not contain
Index: recog.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/recog.h,v
retrieving revision 1.48
diff -u -r1.48 recog.h
--- recog.h	9 Jan 2004 20:03:53 -0000	1.48
+++ recog.h	19 Feb 2004 17:11:28 -0000
@@ -88,7 +88,6 @@
 extern int validate_replace_rtx_subexp (rtx, rtx, rtx, rtx *);
 extern int validate_replace_rtx (rtx, rtx, rtx);
 extern void validate_replace_rtx_group (rtx, rtx, rtx);
-extern int validate_replace_src (rtx, rtx, rtx);
 extern void validate_replace_src_group (rtx, rtx, rtx);
 extern int num_changes_pending (void);
 #ifdef HAVE_cc0


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