public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2763] Make some functions in CCP static.
@ 2023-07-25 19:09 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2023-07-25 19:09 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a8649d53d1359756b737915193e4684c7dddcaf4

commit r14-2763-ga8649d53d1359756b737915193e4684c7dddcaf4
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Tue Jul 25 11:51:28 2023 -0400

    Make some functions in CCP static.
    
    gcc/ChangeLog:
    
            * tree-ssa-ccp.cc (value_mask_to_min_max): Make static.
            (bit_value_mult_const): Same.
            (get_individual_bits): Same.

Diff:
---
 gcc/tree-ssa-ccp.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/tree-ssa-ccp.cc b/gcc/tree-ssa-ccp.cc
index 64d5fa81334..73fb7c11c64 100644
--- a/gcc/tree-ssa-ccp.cc
+++ b/gcc/tree-ssa-ccp.cc
@@ -1297,7 +1297,7 @@ ccp_fold (gimple *stmt)
    represented by the mask pair VAL and MASK with signedness SGN and
    precision PRECISION.  */
 
-void
+static void
 value_mask_to_min_max (widest_int *min, widest_int *max,
 		       const widest_int &val, const widest_int &mask,
 		       signop sgn, int precision)
@@ -1391,7 +1391,7 @@ bit_value_unop (enum tree_code code, signop type_sgn, int type_precision,
 
 /* Determine the mask pair *VAL and *MASK from multiplying the
    argument mask pair RVAL, RMASK by the unsigned constant C.  */
-void
+static void
 bit_value_mult_const (signop sgn, int width,
 		      widest_int *val, widest_int *mask,
 		      const widest_int &rval, const widest_int &rmask,
@@ -1453,7 +1453,7 @@ bit_value_mult_const (signop sgn, int width,
    bits in X (capped at the maximum value MAX).  For example, an X
    value 11, places 1, 2 and 8 in BITS and returns the value 3.  */
 
-unsigned int
+static unsigned int
 get_individual_bits (widest_int *bits, widest_int x, unsigned int max)
 {
   unsigned int count = 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-25 19:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25 19:09 [gcc r14-2763] Make some functions in CCP static Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).