aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-10-24 15:51:46 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-11-07 11:45:46 +0000
commit0c30bf43eb2325caa4cb32a697ac1127c15205d7 (patch)
treeb48fce515527857a67855662c4fde50b90cb6328 /gcc/c
parentdf784801daf0185a1e22ebf03d48363530717882 (diff)
downloadgcc-0c30bf43eb2325caa4cb32a697ac1127c15205d7.zip
gcc-0c30bf43eb2325caa4cb32a697ac1127c15205d7.tar.gz
gcc-0c30bf43eb2325caa4cb32a697ac1127c15205d7.tar.bz2
Objective-C : Implement NSObject attribute.
This attribute allows pointers to be marked as pointers to an NSObject-compatible object. This allows for additional checking of assignment etc. when refering to pointers to opaque types. gcc/c-family/ChangeLog: * c-attribs.c (handle_nsobject_attribute): New. * c.opt: Add WNSObject-attribute. gcc/objc/ChangeLog: * objc-act.c (objc_compare_types): Handle NSObject type attributes. (objc_type_valid_for_messaging): Likewise. gcc/testsuite/ChangeLog: * obj-c++.dg/attributes/nsobject-01.mm: New test. * objc.dg/attributes/nsobject-01.m: New test.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions