This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: ATTRIBUTE_UNUSED
- To: Ben Elliston <bje at redhat dot com>
- Subject: Re: ATTRIBUTE_UNUSED
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 28 Aug 2000 10:21:32 +1100
- CC: Doug Evans <dje at transmeta dot com>, cgen development <cgen at sources dot redhat dot com>, cagney at redhat dot com
- References: <Pine.LNX.4.21.0008280856430.5925-100000@moshpit.cygnus.com>
Ben Elliston wrote:
>
> How about just
> - CGEN_CPU_DESC cd;
> + CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
>
> Just out of interest, what is the policy concerning code generated for
> inclusion in libopcodes and gdb (the sims)? Can we depend on GCC extensions
> like these? My understanding was that cagney really dislikes them, instead
> preferring a new gcc option to allay unused parameter warnings.
FYI, GDB does not accept ATTRIBUTE_UNUSED patches (state of the art GCC
has -Wno-unused-param making that macro unnecessary) I don't have an
opinion on the SIM directory.
Andrew