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]: __attribute__((deprecated)) (revision2)


On Tue, 8 Jan 2002, Ira Ruben wrote:

> I do allow tags to be deprecated.  I my test case has one of these. 
> But I should point out that the C grammar appears to allow only one 
> way to apply an __attribute__ to a struct tag, i.e.,
> 
>    struct foo { ... } __attribute__((whatever));

The C grammar has

struct_head:
          STRUCT
                { $$ = NULL_TREE; }
        | STRUCT attributes
                { $$ = $2; }
        ;

which ought to achieve the desired effect.

If this doesn't work, it's a bug, since both syntaxes are documented.  
Please include both (and both "deprecated" and "__deprecated__") in the
testcases.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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