diff mbox

[02/15] rs6000: Make num_insns_constant_wide static

Message ID 1439341904-9345-3-git-send-email-rth@redhat.com
State New
Headers show

Commit Message

Richard Henderson Aug. 12, 2015, 1:11 a.m. UTC
Cc: David Edelsohn <dje.gcc@gmail.com>
---
	* config/rs6000/rs6000-protos.h (num_insns_constant_wide): Move...
	* config/rs6000/rs6000.c: ... prototype here.  Make static.
---
 gcc/config/rs6000/rs6000-protos.h | 1 -
 gcc/config/rs6000/rs6000.c        | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/gcc/config/rs6000/rs6000-protos.h b/gcc/config/rs6000/rs6000-protos.h
index f5d3476..2407060 100644
--- a/gcc/config/rs6000/rs6000-protos.h
+++ b/gcc/config/rs6000/rs6000-protos.h
@@ -34,7 +34,6 @@  extern bool easy_altivec_constant (rtx, machine_mode);
 extern HOST_WIDE_INT const_vector_elt_as_int (rtx, unsigned int);
 extern bool macho_lo_sum_memory_operand (rtx, machine_mode);
 extern int num_insns_constant (rtx, machine_mode);
-extern int num_insns_constant_wide (HOST_WIDE_INT);
 extern int small_data_operand (rtx, machine_mode);
 extern bool mem_operand_gpr (rtx, machine_mode);
 extern bool toc_relative_expr_p (const_rtx, bool);
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index a33b9d3..abaf7eb 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -1108,6 +1108,7 @@  static tree rs6000_handle_altivec_attribute (tree *, tree, tree, int, bool *);
 static tree rs6000_handle_struct_attribute (tree *, tree, tree, int, bool *);
 static tree rs6000_builtin_vectorized_libmass (tree, tree, tree);
 static void rs6000_emit_set_long_const (rtx, HOST_WIDE_INT);
+static int num_insns_constant_wide (HOST_WIDE_INT);
 static bool rs6000_is_valid_and_mask_wide (unsigned HOST_WIDE_INT val,
 					   machine_mode mode);
 static int rs6000_memory_move_cost (machine_mode, reg_class_t, bool);
@@ -5240,7 +5241,7 @@  direct_return (void)
 /* Return the number of instructions it takes to form a constant in an
    integer register.  */
 
-int
+static int
 num_insns_constant_wide (HOST_WIDE_INT value)
 {
   /* signed constant loadable with addi */