This is an archive of the discontinued LLVM Phabricator instance.

Restore previous structure ABI for bitfields with 'packed' attribute for PS4 targets
ClosedPublic

Authored by ormris on Aug 7 2017, 9:32 AM.

Details

Summary

An ABI change was introduced in r254596 that modified structure layouts when the 'packed' attribute was used on one-byte bitfields. Since the PS4 target needs to maintain backwards compatibility for all structure layouts, this change reintroduces the old behavior for PS4 targets only. It also introduces PS4 specific cases to the relevant test.

See the following review for discussion of r254596.
https://reviews.llvm.org/D14872

Event Timeline

ormris created this revision.Aug 7 2017, 9:32 AM

An ABI change was introduced in r254596 that modified structure layouts when the 'packed' attribute was used on one-byte bitfields. Since the PS4 target needs to maintain backwards compatibility for all structure layouts, this change reintroduces the old behavior for PS4 targets only. It also introduces PS4 specific cases to the relevant test.

See the following review for discussion of r254596.
https://reviews.llvm.org/D14872

FTR, from a PS4 perspective this is all good, but we'd like somebody from outside our team to take a look.

This revision is now accepted and ready to land.Aug 8 2017, 8:21 AM

Great. Thanks for the review! I don't have commit access currently.

aaron.ballman closed this revision.Aug 8 2017, 11:08 AM

I've commit in r310388