ATTRIBUTE_UNUSED
Andrew Cagney
ac131313@cygnus.com
Sun Aug 27 16:23:00 GMT 2000
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
More information about the Cgen
mailing list