[patch] expr.c: Make mostly_zeros_p static.
Kazu Hirata
kazu@cs.umass.edu
Thu Nov 4 17:43:00 GMT 2004
Hi,
Attached is a patch to make mostly_zeros_p static as it is called only
from expr.c.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
* expr.c (mostly_zero_p): Make it static.
* tree.h: Remove the prototype for mostly_zeros_p.
Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.c,v
retrieving revision 1.737
diff -u -d -p -r1.737 expr.c
--- expr.c 28 Oct 2004 03:53:31 -0000 1.737
+++ expr.c 3 Nov 2004 21:58:54 -0000
@@ -4212,7 +4212,7 @@ count_type_elements (tree type)
/* Return 1 if EXP contains mostly (3/4) zeros. */
-int
+static int
mostly_zeros_p (tree exp)
{
if (TREE_CODE (exp) == CONSTRUCTOR)
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.643
diff -u -d -p -r1.643 tree.h
--- tree.h 29 Oct 2004 14:05:43 -0000 1.643
+++ tree.h 3 Nov 2004 21:58:56 -0000
@@ -3250,7 +3250,6 @@ extern bool initializer_zerop (tree);
extern void categorize_ctor_elements (tree, HOST_WIDE_INT *, HOST_WIDE_INT *);
extern HOST_WIDE_INT count_type_elements (tree);
-extern int mostly_zeros_p (tree);
/* add_var_to_bind_expr (bind_expr, var) binds var to bind_expr. */
More information about the Gcc-patches
mailing list