[llvm-bugs] [Bug 42154] Wrong alignment of pointer argument when typedef enforced

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 6 11:39:42 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42154

Eli Friedman <efriedma at quicinc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |efriedma at quicinc.com
             Status|NEW                         |RESOLVED

--- Comment #1 from Eli Friedman <efriedma at quicinc.com> ---
This is how both clang and gcc have always worked; we can't change it.

You probably want "__attribute__((packed,aligned(4)))", to indicate that you
intend to misalign some of the members of the struct.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190606/184e2b91/attachment-0001.html>


More information about the llvm-bugs mailing list