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: https://llvm.org/PR35250

-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 https://sourceforge.net/p/mingw-w64/bugs/686/ with everything I know.

Thanks for the workaround Reid! :slight_smile:

Nikolai