This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: __attribute__((deprecated)) (revision2)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Ira Ruben <ira at apple dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Gabriel Dos Reis <gdr at codesourcery dot com>, Phil Edwards <pedwards at disaster dot jaj dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 9 Jan 2002 01:30:08 +0000 (GMT)
- Subject: 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