This is the mail archive of the gcc@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: [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


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