Objective-C/C++ (C-family) : Add missing 'atomic' property attribute.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 2 Nov 2020 21:12:38 +0000 (21:12 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 7 Nov 2020 11:50:23 +0000 (11:50 +0000)
commit6f762481a21f211c03b6eda416b5d5737c3ed4b7
tree4161b1ecdf8f258514b70f54e4cf0b1cf9937804
parent0c30bf43eb2325caa4cb32a697ac1127c15205d7
Objective-C/C++ (C-family) : Add missing 'atomic' property attribute.

This is the default, but it is still legal in user code and therefore
we should handle it in parsing.  Fix whitespace issues in the lines
affected.

gcc/c-family/ChangeLog:

* c-common.c (c_common_reswords): Add 'atomic' property
attribute.
* c-common.h (enum rid): Add RID_PROPATOMIC for atomic
property attributes.

gcc/objc/ChangeLog:

* objc-act.c (objc_prop_attr_kind_for_rid): Handle
RID_PROPATOMIC.

gcc/testsuite/ChangeLog:

* obj-c++.dg/property/at-property-4.mm: Test atomic property
attribute.
* objc.dg/property/at-property-4.m: Likewise.
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/objc/objc-act.c
gcc/testsuite/obj-c++.dg/property/at-property-4.mm
gcc/testsuite/objc.dg/property/at-property-4.m