[PATCH] D70266: [ELF] Fix lld build on Windows/MinGW

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 10:14:51 PST 2019


aykevl added a comment.

> So far nobody has mentioned that the reduced struct (`struct Foo { unsigned myBit : 1; char myByte; };`) is 8 bytes with MSVC. It's highly possible that GCC is aligning their ABI with MSVC for better compatibility.

Right, then it makes sense that GCC/MinGW has changed its behavior.
https://godbolt.org/z/hzEGgj


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70266/new/

https://reviews.llvm.org/D70266





More information about the llvm-commits mailing list