GCC has gcc_struct
attribute which can override the compile flag.
I don’t see a way to specify that other layout should be used. Is clang default packing layout same as gcc? See also QEMU issue: 8.1.0rc0: Build failure compiling with clang on windows (#1782) · Issues · QEMU / QEMU · GitLab
thanks