This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] noclobber & noescape annotations for function arguments
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Apr 2010 17:57:57 +0200
- Subject: Re: [PATCH] noclobber & noescape annotations for function arguments
- References: <alpine.LNX.2.00.1004151658550.5522@zhemvz.fhfr.qr>
On 15 April 2010 17:06, Richard Guenther <rguenther@suse.de> wrote:
> + handle_fnspec_attribute (tree *node ATTRIBUTE_UNUSED, tree ARG_UNUSED (name),
I know it is unrelated but what is the difference between
ATTRIBUTE_UNUSED and ARG_UNUSED. Why we have both?
> +
> + @table @code
> + @item x
> + @item X
> + The parameter is unused.
I guess this is not the same at all as attribute unused, which I
predict will cause confusion even if we say it explicitly here. Does
this spec also silence warnings about unused arguments?
And the bikeshedding bit, why X and not U? OK, not really a bid deal.
Cheers,
Manuel