diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-24 15:51:46 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-11-07 11:45:46 +0000 |
commit | 0c30bf43eb2325caa4cb32a697ac1127c15205d7 (patch) | |
tree | b48fce515527857a67855662c4fde50b90cb6328 /gcc/c | |
parent | df784801daf0185a1e22ebf03d48363530717882 (diff) | |
download | gcc-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