Suggesting https://reviews.llvm.org/rL310905 for 5.0.1 release

Hi Tom,

The mentioned patch fixes miscompilation of llvm/clang when it's compiled with certain mingw versions. The tablegen tool is miscompiled and crashes and thus it's not possible to build llvm/clang at all with some mingw versions.

Please consider to include the patch for 5.0.1.

Best regards,
    Nikolai

Hi Tom,

The mentioned patch fixes miscompilation of llvm/clang when it's compiled with certain mingw versions. The tablegen tool is miscompiled and crashes and thus it's not possible to build llvm/clang at all with some mingw versions.

Please consider to include the patch for 5.0.1.

I've created a merge request for this: Merge r310905 r310994 into the 5.0 branch : Avoid PointerIntPair of constexpr EvalInfo structs · Issue #34598 · llvm/llvm-project · GitHub

-Tom

If you can reproduce this issue, I would appreciate it if you filed a bug with mingw about it. I made that change by understanding the conditions that caused the bug and avoiding them without reproducing the problem. It’s not clear to me what’s wrong with requesting an overaligned stack object with attribute((align())) in mingw gcc.

I've created a mingw-64 ticket at MinGW-w64 - for 32 and 64 bit Windows / Bugs / #686 Miscompilation of LLVM/Clang in release mode and 32-Bit with everything I know.

Thanks for the workaround Reid! :slight_smile:

Nikolai