[RFI]: getting objc to grok attributes ??

Joseph S. Myers jsm28@cam.ac.uk
Mon Jun 17 01:30:00 GMT 2002


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



More information about the Gcc mailing list