Re: [PATCH][C++] C++ bitfield memory model for as-base classes

2016-07-21 Thread Richard Biener
On Wed, 20 Jul 2016, Jeff Law wrote: > On 06/29/2016 05:54 AM, Richard Biener wrote: > > > > Currently as-base classes lack DECL_BIT_FIELD_REPRESENTATIVEs which > > means RTL expansion doesn't honor the C++ memory model for bitfields > > in them thus for the following testcase > > > > struct B {

Re: [PATCH][C++] C++ bitfield memory model for as-base classes

2016-07-20 Thread Jeff Law
On 06/29/2016 05:54 AM, Richard Biener wrote: Currently as-base classes lack DECL_BIT_FIELD_REPRESENTATIVEs which means RTL expansion doesn't honor the C++ memory model for bitfields in them thus for the following testcase struct B { B() {} int x; int a : 6; int b : 6; int c