From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14202 invoked by alias); 5 Apr 2011 19:18:26 -0000 Received: (qmail 14194 invoked by uid 22791); 5 Apr 2011 19:18:25 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Apr 2011 19:18:19 +0000 Received: (qmail 32309 invoked from network); 5 Apr 2011 19:18:18 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 5 Apr 2011 19:18:18 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1Q7BlY-0000JT-Mn; Tue, 05 Apr 2011 19:18:16 +0000 Date: Tue, 05 Apr 2011 19:18:00 -0000 From: "Joseph S. Myers" To: Nathan Froyd cc: Richard Earnshaw , Jeff Law , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] cleanup gcse.c:canon_modify_mem_list In-Reply-To: <20110405123041.GG23480@codesourcery.com> Message-ID: 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/msg00393.txt.bz2 On Tue, 5 Apr 2011, 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. I also had the impression that for certain special macros such as VEC, GTY, _, N_, G_ - macros that are not really substituting for functions, for-loops, etc. - the norm was no space, whereas for function prototypes, function calls and calls to macros that are being used syntactically and semantically more or less like functions the norm is to have the space (I'm not sure about the case of __attribute__ and macros generating __attribute__). But I see VEC is in fact used more often with the space. (For the VEC_* macros used like functions rather than in type names, the norm is very clearly to have the space.) -- Joseph S. Myers joseph@codesourcery.com