From patchwork Fri Jul 18 10:52:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chung-Ju Wu X-Patchwork-Id: 371446 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 4069A14010F for ; Fri, 18 Jul 2014 20:52:32 +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 :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=PxEzpr+Zkwagv+2mZjKVmQ6+vVjKQoqwT0bgWCXP2V7suf DpUgkuFvo2gjdtGipouDdP8CPKetiwq1z4sadp53lk9EWgECIOU6Pez/9qZ2A+v8 Jm4ryWiKJ78LxtYthv3rx5r/dR3ACxINk70GSzF3JEW1pC3AAuXSxN9Q1uhyg= 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 :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=gTkI0gAl/RcKHarZLwDbgxBBVeU=; b=LislF+61WrgGBCVsUORm FByZqpmOoEUSnZSB/23WJbiRhQKX9lGf2tXZ29KNxNWcgqVDUdDTawi79BnRCjR0 MghVhuItTP0+gKDrK1eQH36BneIZq1PxEG6AYpa/rDejYcJAZsGiEUqP5uW9COAJ fcpVfOwWLQhmuZYEgzroSxA= Received: (qmail 24970 invoked by alias); 18 Jul 2014 10:52:25 -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 24867 invoked by uid 89); 18 Jul 2014 10:52:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f171.google.com Received: from mail-qc0-f171.google.com (HELO mail-qc0-f171.google.com) (209.85.216.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 18 Jul 2014 10:52:19 +0000 Received: by mail-qc0-f171.google.com with SMTP id i17so3214495qcy.16 for ; Fri, 18 Jul 2014 03:52:17 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.34.73 with SMTP id k9mr6759024qad.11.1405680736359; Fri, 18 Jul 2014 03:52:16 -0700 (PDT) Received: by 10.140.98.69 with HTTP; Fri, 18 Jul 2014 03:52:16 -0700 (PDT) Date: Fri, 18 Jul 2014 18:52:16 +0800 Message-ID: Subject: [PATCH, nds32] Committed: Have function name start in column one to follow GNU coding standards. From: Chung-Ju Wu To: gcc patches X-IsSubscribed: yes Hi, According to the GNU coding standards, the function name should start in column one. Fixed it as obvious, committed as Rev.212809. Best regards, jasonwucj Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 212808) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,11 @@ +2014-07-18 Chung-Ju Wu + + * config/nds32/nds32.c (nds32_can_eliminate): Follow the + GNU coding standards. + (nds32_register_move_cost): Likewise. + (nds32_memory_move_cost): Likewise. + (nds32_address_cost): Likewise. + 2014-07-18 Jan-Benedict Glaw * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable. Index: gcc/config/nds32/nds32.c =================================================================== --- gcc/config/nds32/nds32.c (revision 212808) +++ gcc/config/nds32/nds32.c (working copy) @@ -18,8 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ +/* ------------------------------------------------------------------------ */ - #include "config.h" #include "system.h" #include "coretypes.h" @@ -1195,7 +1195,8 @@ /* -- Eliminating Frame Pointer and Arg Pointer. */ -static bool nds32_can_eliminate (const int from_reg, const int to_reg) +static bool +nds32_can_eliminate (const int from_reg, const int to_reg) { if (from_reg == ARG_POINTER_REGNUM && to_reg == STACK_POINTER_REGNUM) return true; @@ -1795,9 +1796,10 @@ ^L /* Describing Relative Costs of Operations. */ -static int nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, - reg_class_t from, - reg_class_t to) +static int +nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, + reg_class_t from, + reg_class_t to) { if (from == HIGH_REGS || to == HIGH_REGS) return 6; @@ -1805,9 +1807,10 @@ return 2; } -static int nds32_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, - reg_class_t rclass ATTRIBUTE_UNUSED, - bool in ATTRIBUTE_UNUSED) +static int +nds32_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, + reg_class_t rclass ATTRIBUTE_UNUSED, + bool in ATTRIBUTE_UNUSED) { return 8; } @@ -1827,10 +1830,11 @@ return nds32_rtx_costs_impl (x, code, outer_code, opno, total, speed); } -static int nds32_address_cost (rtx address, - enum machine_mode mode, - addr_space_t as, - bool speed) +static int +nds32_address_cost (rtx address, + enum machine_mode mode, + addr_space_t as, + bool speed) { return nds32_address_cost_impl (address, mode, as, speed); }