error_decl, warning_decl (wa Re: Unreviewed stage2 patches)

Jason Merrill jason@redhat.com
Sat Sep 22 01:21:00 GMT 2007


Jakub Jelinek wrote:
> On Fri, Sep 21, 2007 at 01:13:34AM -0400, Jason Merrill wrote:
>> Jakub Jelinek wrote:
>>> __error_decl__ and __warning_decl__ attributes:
>>> http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00876.html
>> Why "_decl"?
> 
> Because glibc already uses for such things __warndecl and __errordecl
> macros, except that they result only into link time warnings or
> link time errors without gcc help.

Ah.  But there the name is a directive rather than an attribute.

> I don't care about the names though, can be anything else,
> all I care is about the semantics.
> So __error_fn__, __error_function__, __error_call__, __error_on_call__
> or even just __error__ are ok with me.

Any of those would be fine with me.  With that change the patch is OK.

Jason



More information about the Gcc-patches mailing list