From e0ce77087ddb36d0f29bdc43b840b7dbdec6d478 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 4 Nov 2004 23:22:30 +0000 Subject: [PATCH] expr.c (mostly_zero_p): Make it static. * expr.c (mostly_zero_p): Make it static. * tree.h: Remove the prototype for mostly_zeros_p. From-SVN: r90089 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 2 +- gcc/tree.h | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 175035858c4..fba5fde88c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-04 Kazu Hirata + + * expr.c (mostly_zero_p): Make it static. + * tree.h: Remove the prototype for mostly_zeros_p. + 2004-11-04 Kazu Hirata * cfgrtl.c (force_nonfallthru_and_redirect): Make it static. diff --git a/gcc/expr.c b/gcc/expr.c index bc19bc1cc17..18d3ff6edec 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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) diff --git a/gcc/tree.h b/gcc/tree.h index 7a0db8186c1..023811a23cb 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -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. */