From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22891 invoked by alias); 13 Jul 2004 08:05:17 -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 22656 invoked from network); 13 Jul 2004 08:05:15 -0000 Received: from unknown (HELO develer.com) (151.38.19.110) by sourceware.org with SMTP; 13 Jul 2004 08:05:15 -0000 Received: (qmail 16205 invoked from network); 13 Jul 2004 08:05:12 -0000 Received: from beetle.trilan (HELO ?10.3.2.254?) (?CY/QJWmDEcru5S9dS8KIg+MZd7HEvcR6?@10.3.2.254) by trinity.trilan with SMTP; 13 Jul 2004 08:05:12 -0000 Message-ID: <40F397B8.6070308@develer.com> Date: Tue, 13 Jul 2004 08:05: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: DJ Delorie CC: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, ian@wasabisystems.com Subject: Re: [libiberty] Add ARG_UNUSED as a C++-friendly replacement for ATTRIBUTE_UNUSED References: <40F1D2BD.7030808@develer.com> <200407121909.i6CJ9Hxj021491@greed.delorie.com> In-Reply-To: <200407121909.i6CJ9Hxj021491@greed.delorie.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00143.txt.bz2 DJ Delorie wrote: > This implementation doesn't address K&R style argument lists, although > that's soon to be a moot point ;-) Anyway, I think there's no way to get something like this to work: foo (a, b, dummy) char *a; int b; ARG_UNUSED (int, dummy); { } > I'd also prefer this definition to be right after the ATTRIBUTE_UNUSED > definition, rather than randomly added to the end of the file. OK. > However, I'm not convinced we need this yet. By the time we require a > C++ compiler, 3.4.0 will be old enough to require that version. So we won't be able to bootstrap from third-party C++ compilers? The ATTRIBUTE_UNUSED macro cannot be made to work with MSVC, CW or other popular compilers. Not that I care that much: on any supported host you can always install an older version of GCC or cross-compile from another host. -- // Bernardo Innocenti - Develer S.r.l., R&D dept. \X/ http://www.develer.com/