From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75746 invoked by alias); 12 Aug 2015 01:11:52 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 75716 invoked by uid 89); 12 Aug 2015 01:11:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f46.google.com Received: from mail-pa0-f46.google.com (HELO mail-pa0-f46.google.com) (209.85.220.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 12 Aug 2015 01:11:51 +0000 Received: by pabyb7 with SMTP id yb7so2253329pab.0 for ; Tue, 11 Aug 2015 18:11:49 -0700 (PDT) X-Received: by 10.66.62.233 with SMTP id b9mr1809702pas.149.1439341909701; Tue, 11 Aug 2015 18:11:49 -0700 (PDT) Received: from bigtime.twiddle.net (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by smtp.gmail.com with ESMTPSA id kv10sm4167810pbc.2.2015.08.11.18.11.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2015 18:11:48 -0700 (PDT) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: David Edelsohn Subject: [PATCH 02/15] rs6000: Make num_insns_constant_wide static Date: Wed, 12 Aug 2015 01:12:00 -0000 Message-Id: <1439341904-9345-3-git-send-email-rth@redhat.com> In-Reply-To: <1439341904-9345-1-git-send-email-rth@redhat.com> References: <1439341904-9345-1-git-send-email-rth@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00564.txt.bz2 Cc: David Edelsohn --- * 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 --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 */ -- 2.4.3