Restore previous structure ABI behavior for bit-fields with the packed attribute...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 8 Aug 2017 18:07:17 +0000 (18:07 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 8 Aug 2017 18:07:17 +0000 (18:07 +0000)
commitb6fd726f9c15aba9e189ad68847db6eced7c7f17
tree8182bab2cf4d22a1928f8338582eab2e96ecc698
parent3b8d5586ec1356479bcf21636ee9f640ef0265c7
Restore previous structure ABI behavior for bit-fields with the packed attribute for PS4 targets.

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.

Patch by Matthew Voss.

llvm-svn: 310388
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Sema/struct-packed-align.c