This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] noclobber & noescape annotations for function arguments


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]