From patchwork Sun Jun 22 09:57:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 362515 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D2F2B14001A for ; Sun, 22 Jun 2014 19:57:43 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=UjVDGIJsyXj41Mc8p7l52ZUTzXs9OkEgvqtcMOkHLZTz6VmXjVczd J3NkpbtH3OlRef2DFC8T8F0hezroS5a3NRi82GzytONMLMQxmT7HLeI7mOghe54a XZELuZbj3cCpIdxBFI31iKFKm0aYMc2Rk6aRwXP2fo7vDt8tnxZg2w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=gR++eDCWQ0uqOtPNDHdU398Cuyw=; b=NQLy+n97UwzHTjtKw92B XDx4BP1gb74VA0+u6tC8dX7PbPWisDhtbWdQVuxgaskmiEFWlTNbxgffe0v3E0gJ hDWJ9CBzyTGrRF3b0vKqaSgeT+klYY95IP2mlEQP5vMA5r0QwLDsImiczqvAyHrG DXPEhcTEHV0kv8VOJOz1zGo= Received: (qmail 26420 invoked by alias); 22 Jun 2014 09:57:37 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 26406 invoked by uid 89); 22 Jun 2014 09:57:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f51.google.com Received: from mail-wg0-f51.google.com (HELO mail-wg0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 22 Jun 2014 09:57:35 +0000 Received: by mail-wg0-f51.google.com with SMTP id x12so5432006wgg.22 for ; Sun, 22 Jun 2014 02:57:32 -0700 (PDT) X-Received: by 10.194.58.199 with SMTP id t7mr18795881wjq.14.1403431052284; Sun, 22 Jun 2014 02:57:32 -0700 (PDT) Received: from localhost ([2.26.169.52]) by mx.google.com with ESMTPSA id wp6sm17988966wjb.9.2014.06.22.02.57.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jun 2014 02:57:31 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: [MIPS, committed] Fix some mips.c warnings Date: Sun, 22 Jun 2014 10:57:31 +0100 Message-ID: <871tuh8dx0.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Fixes unused "mode" and "in_p" argument names. Neither mips_move_to_gpr_cost nor mips_move_from_gpr_cost care about the mode now, so I just removed it. Thanks, Richard gcc/ * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument. (mips_move_from_gpr_cost): Likewise. (mips_register_move_cost): Update accordingly. (mips_secondary_reload_class): Remove name of in_p. Index: gcc/config/mips/mips.c =================================================================== --- gcc/config/mips/mips.c 2014-06-14 09:30:21.288981027 +0100 +++ gcc/config/mips/mips.c 2014-06-22 10:48:26.156234088 +0100 @@ -12021,13 +12021,12 @@ mips_canonicalize_move_class (reg_class_ return rclass; } -/* Return the cost of moving a value of mode MODE from a register of - class FROM to a GPR. Return 0 for classes that are unions of other - classes handled by this function. */ +/* Return the cost of moving a value from a register of class FROM to a GPR. + Return 0 for classes that are unions of other classes handled by this + function. */ static int -mips_move_to_gpr_cost (enum machine_mode mode ATTRIBUTE_UNUSED, - reg_class_t from) +mips_move_to_gpr_cost (reg_class_t from) { switch (from) { @@ -12059,12 +12058,12 @@ mips_move_to_gpr_cost (enum machine_mode } } -/* Return the cost of moving a value of mode MODE from a GPR to a - register of class TO. Return 0 for classes that are unions of - other classes handled by this function. */ +/* Return the cost of moving a value from a GPR to a register of class TO. + Return 0 for classes that are unions of other classes handled by this + function. */ static int -mips_move_from_gpr_cost (enum machine_mode mode, reg_class_t to) +mips_move_from_gpr_cost (reg_class_t to) { switch (to) { @@ -12125,15 +12124,15 @@ mips_register_move_cost (enum machine_mo /* Handle cases in which only one class deviates from the ideal. */ dregs = TARGET_MIPS16 ? M16_REGS : GENERAL_REGS; if (from == dregs) - return mips_move_from_gpr_cost (mode, to); + return mips_move_from_gpr_cost (to); if (to == dregs) - return mips_move_to_gpr_cost (mode, from); + return mips_move_to_gpr_cost (from); /* Handles cases that require a GPR temporary. */ - cost1 = mips_move_to_gpr_cost (mode, from); + cost1 = mips_move_to_gpr_cost (from); if (cost1 != 0) { - cost2 = mips_move_from_gpr_cost (mode, to); + cost2 = mips_move_from_gpr_cost (to); if (cost2 != 0) return cost1 + cost2; } @@ -12158,7 +12157,7 @@ mips_memory_move_cost (enum machine_mode enum reg_class mips_secondary_reload_class (enum reg_class rclass, - enum machine_mode mode, rtx x, bool in_p) + enum machine_mode mode, rtx x, bool) { int regno;