3 ms·
Curious how this was solved, anyone have a link to a followup?
by r1ch 10y ago
Curious how this was solved, anyone have a link to a followup?
- arcticbull 10y agoThis was resolved in GCC 4.8 here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52080 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52080 "Here is a candidate patch (it ICEs one Ada testcase, see PR52134). It enforces the C++11 memory model (as far as bitfields are concerned) upon everyone and builds on the machinery that was implemented for it (changing the implementation for when we compute "an underlying object" and permanently store it, to make it possible to use this information for optimization purposes)." If I'm not mistaken they could have ensured 64-bit alignment when a bitfield immediately follows a lock, although that likely wouldn't have been fun.