[llvm-dev] How to change CLang struct alignment behaviour?

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue May 14 10:55:06 PDT 2019


Hi John,

On Tue, 14 May 2019 at 17:51, Joan Lluch <joan.lluch at icloud.com> wrote:
> This problem is also shared by the MSP430 target, and it’s very easy to reproduce by just compiling the code that I posted before.

That's some good detective work; it definitely explains what you're
seeing. Since MSP430 is affected it would probably be pretty easy to
upstream an alignment-aware version of the function and test it, if
you're keen. I'd promise to do a review promptly!

Cheers.

Tim.


More information about the llvm-dev mailing list