This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] sched-deps.c: Make add_insn_mem_dependence static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 06 Nov 2004 14:51:42 -0500 (EST)
- Subject: [patch] sched-deps.c: Make add_insn_mem_dependence static.
Hi,
Attached is a patch to make add_insn_mem_dependence static as it is
called only from sched-deps.c itself.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
* sched-deps.c (add_insn_mem_dependence): Remove.
* sched-int.h: Remove the corresponding prototypes.
Index: sched-deps.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sched-deps.c,v
retrieving revision 1.83
diff -u -d -p -r1.83 sched-deps.c
--- sched-deps.c 4 Nov 2004 08:41:09 -0000 1.83
+++ sched-deps.c 5 Nov 2004 01:53:26 -0000
@@ -398,7 +398,7 @@ set_sched_group_p (rtx insn)
The MEM is a memory reference contained within INSN, which we are saving
so that we can do memory aliasing on it. */
-void
+static void
add_insn_mem_dependence (struct deps *deps, rtx *insn_list, rtx *mem_list,
rtx insn, rtx mem)
{
Index: sched-int.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sched-int.h,v
retrieving revision 1.35
diff -u -d -p -r1.35 sched-int.h
--- sched-int.h 20 Jul 2004 07:26:51 -0000 1.35
+++ sched-int.h 5 Nov 2004 01:53:26 -0000
@@ -357,7 +357,6 @@ extern void print_insn (char *, rtx, int
/* Functions in sched-deps.c. */
extern int add_dependence (rtx, rtx, enum reg_note);
-extern void add_insn_mem_dependence (struct deps *, rtx *, rtx *, rtx, rtx);
extern void sched_analyze (struct deps *, rtx, rtx);
extern void init_deps (struct deps *);
extern void free_deps (struct deps *);