From patchwork Tue Nov 22 18:45:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 83474 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp2253053qge; Tue, 22 Nov 2016 10:45:51 -0800 (PST) X-Received: by 10.99.230.83 with SMTP id p19mr28858966pgj.138.1479840351630; Tue, 22 Nov 2016 10:45:51 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id f5si1038344plm.37.2016.11.22.10.45.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Nov 2016 10:45:51 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-442276-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-442276-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-442276-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=QLMp8JOx2BxcaGUAXX4hdszfpv9FjwcbkgdBv7uXuMVmiOsJLV q5iQbQNb2qHZzJAWeLi+L86/vF2Go+DUTehAGYBohFMXbL+iJhk2TR7JgK5hYTHf +EngQCB/+51kBpL7/NjWCh+fcqjFni9mQCBSz4uReYF8jRBr4o1fl9Pkc= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=zAB9Uj0qn+L2qOIdfevhKkpjbp8=; b=ZJF+Eh7HB5kTo4Wcr39X ZgGg+nY3Zye1ls7OpN0uXKB97mpc+8eRd3ZWzarOY36a1L4L0FIDPBcQs1gfIvG/ 848IIV6ImGOJCEEX+hscTsr3Puo3VQaR5efxc4/KEivN2+VrLXV/A9cDNY+bxfYf oitFZDeVOMONxYUORakF2SI= Received: (qmail 44115 invoked by alias); 22 Nov 2016 18:45:32 -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 43949 invoked by uid 89); 22 Nov 2016 18:45:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, KAM_LINEPADDING, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=H*r:200, 1627, trailing, H*F:D*acm.org X-HELO: mail-yw0-f169.google.com Received: from mail-yw0-f169.google.com (HELO mail-yw0-f169.google.com) (209.85.161.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Nov 2016 18:45:18 +0000 Received: by mail-yw0-f169.google.com with SMTP id i145so22228729ywg.2 for ; Tue, 22 Nov 2016 10:45:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version; bh=6EwskVjGhWjYFAkvwYWnLBCce3Au8xCwSiJSZKQMqAM=; b=k+Zy8mEN+kzC+co9c0ci+vhGjodvvRI5msdb1O0K2+KmO+8LTrnuEQ+wL2sqfGc/pe ypR/enmVHohf5Wseupfnvo6zpJV5//+S0IJg+CIpbigtMsR0irRngLHRaVpWN+iCdDBG 6YYASGLzIxjK2cCHb2QFY9YXdxF84ZUUf8saqwOBS79rw3T+7ljhvw424pFwwjcw9jHC XSh+OhfYFxmDLTTZGFH6+jsS5OKtOSWKLXYPyhUN+Y9+jzCvpTM61iolM5NCnrZeP0Nw 9hXUw3ghCGxlm9dsnBBXByFeQ29/bnxf2Z8u4CCrY1MLlW9c/cwI1YLBNiKW51Lo6034 wPhA== X-Gm-Message-State: AKaTC01pMBbOifiGWNkwMoqLvbtCI94F3gD2gXJJ0+SuQO7w3Z26KyOHsvydremEsxi8Xg== X-Received: by 10.129.163.69 with SMTP id a66mr23814350ywh.175.1479840309543; Tue, 22 Nov 2016 10:45:09 -0800 (PST) Received: from ?IPv6:2620:10d:c0a3:20fb:6613:fa33:699b:bcd0? ([2620:10d:c091:200::a:901e]) by smtp.googlemail.com with ESMTPSA id z142sm10197231ywz.0.2016.11.22.10.45.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Nov 2016 10:45:08 -0800 (PST) To: GCC Patches From: Nathan Sidwell Subject: formatting cleanups Message-ID: <5a0f7461-54fb-713b-a787-99b2ad310e2f@acm.org> Date: Tue, 22 Nov 2016 13:45:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 I noticed some wonky formatting. Fixed as obvious. nathan -- Nathan Sidwell 2016-11-22 Nathan Sidwell gcc/ * gcc-ar.c (main): Fix indentation. * gcov-io.c (gcov_write_summary): Remove extraneous {...} * ggc-page.c (move_ptes_to_front): Fix formatting. * hsa-dump.c (dump_has_cfun): Fix indentation. * sel-sched-ir.h: Remove trailing blank lines. gcc/c-family/ * array-notation-common.c (cilkplus_extrat_an_triplets): Fix indentation. Index: gcc-ar.c =================================================================== --- gcc-ar.c (revision 242695) +++ gcc-ar.c (working copy) @@ -162,7 +162,7 @@ main (int ac, char **av) len = strlen (arg); if (len > 0) - len--; + len--; end = arg + len; /* Always add a dir separator for the prefix list. */ Index: gcov-io.c =================================================================== --- gcov-io.c (revision 242695) +++ gcov-io.c (working copy) @@ -421,13 +421,11 @@ gcov_write_summary (gcov_unsigned_t tag, histo_bitvector[bv_ix] = 0; csum = &summary->ctrs[GCOV_COUNTER_ARCS]; for (h_ix = 0; h_ix < GCOV_HISTOGRAM_SIZE; h_ix++) - { - if (csum->histogram[h_ix].num_counters > 0) - { - histo_bitvector[h_ix / 32] |= 1 << (h_ix % 32); - h_cnt++; - } - } + if (csum->histogram[h_ix].num_counters) + { + histo_bitvector[h_ix / 32] |= 1 << (h_ix % 32); + h_cnt++; + } gcov_write_tag_length (tag, GCOV_TAG_SUMMARY_LENGTH (h_cnt)); gcov_write_unsigned (summary->checksum); for (csum = summary->ctrs, ix = GCOV_COUNTERS_SUMMABLE; ix--; csum++) Index: hsa-dump.c =================================================================== --- hsa-dump.c (revision 242695) +++ hsa-dump.c (working copy) @@ -1130,10 +1130,10 @@ dump_hsa_cfun (FILE *f) } FOR_ALL_BB_FN (bb, cfun) - { - hsa_bb *hbb = (struct hsa_bb *) bb->aux; - dump_hsa_bb (f, hbb); - } + { + hsa_bb *hbb = (struct hsa_bb *) bb->aux; + dump_hsa_bb (f, hbb); + } } /* Dump textual representation of HSA IL instruction INSN to stderr. */ Index: sel-sched-ir.h =================================================================== --- sel-sched-ir.h (revision 242695) +++ sel-sched-ir.h (working copy) @@ -1669,11 +1669,3 @@ extern void alloc_sched_pools (void); extern void free_sched_pools (void); #endif /* GCC_SEL_SCHED_IR_H */ - - - - - - - - Index: c-family/array-notation-common.c =================================================================== --- c-family/array-notation-common.c (revision 242695) +++ c-family/array-notation-common.c (working copy) @@ -621,21 +621,21 @@ cilkplus_extract_an_triplets (vec