]> git.ipfire.org Git - thirdparty/gcc.git/commit
Objective-C++ : Fix bitfield ivars.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 10 Oct 2020 10:14:47 +0000 (11:14 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 16:19:57 +0000 (17:19 +0100)
commit73699d921d8734c351b9897f16a04453f6a47301
tree57c525b5e20be4ff93036afad155a7deb7b7ef6f
parent04103ecbaa59ccacc977256ae02e2f63dfd90258
Objective-C++ : Fix bitfield ivars.

This fixes a regression present from 8.x;  It used to be OK
to test for a DECL_INITIAL value to flag that an ivar was a
bitfield (the initial value was the width).  This still works
on C / Objective-C, but no longer on C++.  Replace the test
with DECL_C_BIT_FIELD() which is set for both C and C++.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.c (objc_v2_build_ivar_ref): Test
DECL_C_BIT_FIELD to detect that an ivar is a bitfield.
gcc/objc/objc-next-runtime-abi-02.c