From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7683 invoked by alias); 5 Apr 2011 13:08:16 -0000 Received: (qmail 7582 invoked by uid 22791); 5 Apr 2011 13:08:15 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Apr 2011 13:07:40 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p35D7UXk011032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Apr 2011 09:07:30 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p35D7UA8009630; Tue, 5 Apr 2011 09:07:30 -0400 Received: from [10.3.113.84] (ovpn-113-84.phx2.redhat.com [10.3.113.84]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p35D7Sma021648; Tue, 5 Apr 2011 09:07:29 -0400 Message-ID: <4D9B1410.80000@redhat.com> Date: Tue, 05 Apr 2011 13:08:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: Richard Earnshaw CC: Nathan Froyd , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] cleanup gcse.c:canon_modify_mem_list References: <20110404014451.GA16239@nightcrawler> <4D9A0765.6020901@redhat.com> <20110405114440.GE23480@codesourcery.com> <1302006159.25036.12.camel@e102346-lin.cambridge.arm.com> <20110405123041.GG23480@codesourcery.com> <1302008146.25036.15.camel@e102346-lin.cambridge.arm.com> In-Reply-To: <1302008146.25036.15.camel@e102346-lin.cambridge.arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2011-04/txt/msg00331.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/05/11 06:55, Richard Earnshaw wrote: > > On Tue, 2011-04-05 at 05:30 -0700, Nathan Froyd wrote: >> On Tue, Apr 05, 2011 at 01:22:39PM +0100, Richard Earnshaw wrote: >>> On Tue, 2011-04-05 at 04:44 -0700, Nathan Froyd wrote: >>>>> nit; You're missing some whitespace here (after the VEC). >>>> >>>> This doesn't seem to be a hard-and-fast policy; all of the VEC code I >>>> remember writing or looking at recently has no spaces, and I checked the >>>> patch in on that basis. However, running grep indicates that we have a >>>> profusion of styles... >>> >>> I think the style guide is quite clear on this: there should be a space >>> there as Jeff says. The fact that some code has crept in with other >>> styles doesn't make them right, or give justification for ignoring the >>> style guide. >> >> Would you like a patch for the hundreds of instances without spaces? >> >> Certainly vec.h never uses spaces; I thought this was simply The Way >> Things Were. >> >> -Nathan >> > > IMO, rototils are generally pointless. If you are fixing code nearby > then yes, fix the formatting issues. Otherwise, just don't exacerbate > the problem, or we'll reach the point where a rototil really does become > necessary. Well, the other approach is to have a commit hook which automatically deals with formatting crap by running indent, or whatever tool we want. That would take the decision out of the hands of the developer and free the reviewer from having to catch such things and ensures there is a canonical form for our sources. jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNmxQQAAoJEBRtltQi2kC7f7sH/RtTsEdYZKbgD1IdDTHnAW2R OW3ie04GuUdFC1ZAekvOcVhbIeouLZ/HyyaWiZZ3uNajF6cRDMIDe7MEygqKAWKg WUVtJeQlrhnERcvjJFe3pYzxf2wBwSYI/A+6Ql5mXfigx2Za7WoSdzq1zQXvd+Pe ihR35DClH2lX3YAqGi6h47J+lk0kRuN1kvnSWwOzo/ACYBkdJrbZDCRVtkV+UQnt zgn/NkUwNbnJmyApLlr5jVYRIbe8saVrjnrO39siOVz26eqnuV8IehY7ePnidr3f 8wZ06mTJaN/PgMpCltHvQZ3Vos/+BxTtCMTAFaxRKAJd25HNcd955GHBNG7qIYE= =UkkH -----END PGP SIGNATURE-----