From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31839 invoked by alias); 13 Jul 2004 08:15:59 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31502 invoked from network); 13 Jul 2004 08:15:57 -0000 Received: from unknown (HELO develer.com) (151.38.19.110) by sourceware.org with SMTP; 13 Jul 2004 08:15:57 -0000 Received: (qmail 16476 invoked from network); 13 Jul 2004 08:15:47 -0000 Received: from beetle.trilan (HELO ?10.3.2.254?) (?+5W2yiHefBVLEInc0qSEBwT70rhMIjVy?@10.3.2.254) by trinity.trilan with SMTP; 13 Jul 2004 08:15:47 -0000 Message-ID: <40F39A33.5040706@develer.com> Date: Tue, 13 Jul 2004 08:15:00 -0000 From: Bernardo Innocenti Organization: Develer S.r.l. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040625 MIME-Version: 1.0 To: Richard Henderson CC: Andrew Pinski , GCC Patches , gdb-patches@sources.redhat.com, binutils@sources.redhat.com, Ian Lance Taylor , DJ Delorie Subject: Re: [libiberty] Add ARG_UNUSED as a C++-friendly replacement for ATTRIBUTE_UNUSED References: <200407120419.i6C4Jq318362@tin.geop.uc.edu> <40F3944C.1000502@develer.com> <20040713081153.GA3089@redhat.com> In-Reply-To: <20040713081153.GA3089@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00145.txt.bz2 Richard Henderson wrote: > On Tue, Jul 13, 2004 at 09:50:36AM +0200, Bernardo Innocenti wrote: > >>define ARG_UNUSED(T,N) to "T N"). > > > If we do this, I'd prefer > > T ARG_UNUSED(N) > > #ifdef __cplusplus > # define ARG_UNUSED(N) > #elif somegccversion > # define ARG_UNUSED(N) N ATTRIBUTE_UNUSED > #else > # define ARG_UNUSED(N) N > #endif This wouldn't allow us to support g++ < 3.4: # define ARG_UNUSED(T,N) ATTRIBUTE_UNUSED T N -- // Bernardo Innocenti - Develer S.r.l., R&D dept. \X/ http://www.develer.com/