]> granicus.if.org Git - clang/commit
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)
commit89be37b467850bf7c86dfe227352f09721092385
tree3051fcb1ed1e41cb4e08b8b9d318446a6504e93c
parentce50a9599953be89ad6da294238004b0c46299ae
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310388 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/Sema/struct-packed-align.c