diff options
author | David Blaikie <dblaikie@gmail.com> | 2023-04-25 20:01:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2023-05-09 00:13:45 +0000 |
commit | a8b0c6fa28acced71db33e80bd0b51d00422035b (patch) | |
tree | 324c6648c6e9b0601550c37e7fffca5c4244cbf1 /clang/docs | |
parent | 971d982bd45c3c3544dcf8d1e67df39e8c063877 (diff) | |
download | llvm-a8b0c6fa28acced71db33e80bd0b51d00422035b.tar.gz |
Remove -Wpacked false positive for non-pod types where the layout isn't directly changed
The packed attribute can still be useful in this case if the struct is
then placed inside another packed struct - the non-pod element type's
packed attribute declares that it's OK to misalign this element inside
the packed structure. (otherwise the non-pod element is not packed/its
alignment is preserved, as per D117616/2771233)
Fixes PR62353
Differential Revision: https://reviews.llvm.org/D149182
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/ReleaseNotes.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 4f8165bbc8ee..aa9a8a60e586 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -111,6 +111,12 @@ Resolutions to C++ Defect Reports - Implemented `DR2397 <https://wg21.link/CWG2397>`_ which allows ``auto`` specifier for pointers and reference to arrays. +Warnings +^^^^^^^^ +- Address a false positive in ``-Wpacked`` when applied to a non-pod type using + Clang ABI >= 15 (fixes `#62353<https://github.com/llvm/llvm-project/issues/62353>`_, + fallout from the non-POD packing ABI fix in LLVM 15) + C Language Changes ------------------ - Support for outputs from asm goto statements along indirect edges has been |