This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-gimple.c: Remove is_gimple_constructor_elt.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Oct 2004 13:29:42 -0400 (EDT)
- Subject: [patch] tree-gimple.c: Remove is_gimple_constructor_elt.
Hi,
Attached is a patch to remove is_gimple_constructor_elt as it is
unused.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
* tree-gimple.c (is_gimple_constructor_elt): Remove.
* tree-gimple.h: Remove the corresponding prototype.
Index: tree-gimple.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-gimple.c,v
retrieving revision 2.28
diff -u -p -r2.28 tree-gimple.c
--- tree-gimple.c 30 Sep 2004 01:22:05 -0000 2.28
+++ tree-gimple.c 22 Oct 2004 13:55:52 -0000
@@ -132,16 +132,6 @@ rhs_predicate_for (tree lhs)
return is_gimple_mem_rhs;
}
-/* Returns true if T is a valid CONSTRUCTOR component in GIMPLE, either
- a val or another CONSTRUCTOR. */
-
-bool
-is_gimple_constructor_elt (tree t)
-{
- return (is_gimple_val (t)
- || TREE_CODE (t) == CONSTRUCTOR);
-}
-
/* Return true if T is a valid LHS for a GIMPLE assignment expression. */
bool
Index: tree-gimple.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-gimple.h,v
retrieving revision 2.18
diff -u -p -r2.18 tree-gimple.h
--- tree-gimple.h 30 Sep 2004 01:22:05 -0000 2.18
+++ tree-gimple.h 22 Oct 2004 13:55:52 -0000
@@ -81,9 +81,6 @@ extern bool is_gimple_condexpr (tree);
/* Returns true iff T is a type conversion. */
extern bool is_gimple_cast (tree);
-/* Returns true iff T is a valid CONSTRUCTOR element (either an rvalue or
- another CONSTRUCTOR). */
-extern bool is_gimple_constructor_elt (tree);
/* Returns true iff T is a variable that does not need to live in memory. */
extern bool is_gimple_non_addressable (tree t);