[PATCH] D117616: GCC ABI Compatibility: Preserve alignment of non-pod members in packed structs

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 14:17:04 PDT 2022


dblaikie added a comment.

In D117616#3732261 <https://reviews.llvm.org/D117616#3732261>, @dblaikie wrote:

> In D117616#3731188 <https://reviews.llvm.org/D117616#3731188>, @abrachet wrote:
>
>> While digging around failures we were seeing related to this I found some behavior that diverges from gcc. See https://godbolt.org/z/qe18Wh4jf
>
> thanks for the bug report, yeah - looks like we need "fieldClass.isPod && !fieldClass.packed" . I'll send out another patch & update here with a reference.

Sorry it took a bit longer than ideal - posted here: D135916 <https://reviews.llvm.org/D135916>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117616/new/

https://reviews.llvm.org/D117616



More information about the cfe-commits mailing list