This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFI]: getting objc to grok attributes ??
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: <gcc at gcc dot gnu dot org>, <patch at caip dot rutgers dot edu>, <nicola at brainstorm dot co dot uk>, <ovidiu at cup dot hp dot com>, <shebs at apple dot com>
- Date: Mon, 17 Jun 2002 08:37:39 +0100 (BST)
- Subject: Re: [RFI]: getting objc to grok attributes ??
On Sun, 16 Jun 2002, Kaveh R. Ghazi wrote:
> I can't figure out what to do with the attribute once the parser gets
> a hold of it. Can someone please explain it to me?
The objc front end will need to call decl_attributes with the decls in
question and the attributes given. The attribute handlers will need to
accept that sort of decl and set TREE_USED (in the case of "unused"
attributes). The code generating the warning will need to check
TREE_USED. I don't know which of these isn't currently working.
--
Joseph S. Myers
jsm28@cam.ac.uk