https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111107

--- Comment #31 from LIU Hao <lh_mouse at 126 dot com> ---
(In reply to Gabriel Ivăncescu from comment #30)
> Why would it not be safe? For MinGW specifically, what's not safe about it?
> The entire Windows stack assumes only 4-byte alignment for i386, because
> that's what MSVC provides. So interoperability with MSVC code (including
> Windows DLLs or 3rd party libraries) means that anything that requires
> stricter alignment *MUST* realign the stack, or else it would break.
> 
> Therefore it should be completely safe for Windows i386 target.

There's code that expects `__attribute__((__force_align_arg_pointer__))` to
align the stack to 16-byte boundaries.

https://gcc.gnu.org/pipermail/gcc-patches/2025-April/682180.html

Reply via email to