https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103604
--- Comment #20 from Iain Buclaw <ibuclaw at gdcproject dot org> --- (In reply to YunQiang Su from comment #17) > (In reply to Iain Buclaw from comment #16) > > (In reply to Iain Buclaw from comment #15) > > > Don't think it would fail now the statically allocated size is *at least* > > > same as C. But some alias is still not matching up. > > core.sys.posix.sys.types is implicitly assuming X86 sizes. > > (In reply to YunQiang Su from comment #13) > > And please have a wait, I need to make sure that this patch can work with > > N32. > > Finally, with help of gdb, This patch can work with both N64 and N32. Thanks, I've gone with a variant of what I submitted here. Added a few static asserts to ensure that the size matches what I've observed. https://github.com/dlang/druntime/pull/3649