This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is this code really unused?
- To: gcc at gcc dot gnu dot org
- Subject: Is this code really unused?
- From: Sam TH <sam at uchicago dot edu>
- Date: Fri, 18 May 2001 12:24:39 -0500
It would appear that the vast majority of the code in dependence.c is
entirely unused. As evidence, the attached patch bootstraps:
Is there some reason this code is just sitting there?
sam th --- sam@uchicago.edu --- http://www.abisource.com/~sam/
OpenPGP Key: CABD33FC --- http://samth.dyndns.org/key
DeCSS: http://samth.dynds.org/decss
Index: dependence.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dependence.c,v
retrieving revision 1.5
diff -u -r1.5 dependence.c
--- dependence.c 2000/09/17 07:38:11 1.5
+++ dependence.c 2001/05/18 17:05:30
@@ -222,7 +222,7 @@
/* Build dependence chain 'dep_chain', which is used by have_dependence_p,
for the function given by EXP. */
-
+#if 0
void
init_dependence_analysis (exp)
tree exp;
@@ -253,7 +253,7 @@
VARRAY_FREE (loop_chain);
VARRAY_FREE (induction_chain);
}
-
+#endif
/* Build ARRAY_REF def/use info 'def_use_chain' starting at EXP which is a def
or use DU_TYPE */
@@ -606,7 +606,7 @@
}
/* Chain the nodes of 'loop_chain'. */
-
+#if 0
static void
link_loops ()
{
@@ -1300,7 +1300,7 @@
}
/* Dump def/use DU. */
-
+#endif
#if 0
static void
dump_one_node (du, seen)
@@ -1374,7 +1374,7 @@
/* Return the index into 'dep_chain' if there is a dependency for destination
dest_to_remember (set by remember_dest_for_dependence) and source node.
Called by the front end, which adds the index onto a MEM rtx. */
-
+#if 0
int
search_dependence (node)
tree node;
@@ -1468,3 +1468,5 @@
{
VARRAY_FREE (dep_chain);
}
+
+#endif
PGP signature