在 2026-5-3 20:10, Pali Rohár 写道:
+#if defined(__i386__)
+/* Align ESP on 16-byte boundaries. */
+#  if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ 
>= 2))
+__attribute__((force_align_arg_pointer))
+#  endif

Is this check necessary? I think we can always use the attribute like in 
crt{dll,exe}.c

BTW, this is actually a GCC bug, and it should be fixed in GCC 16; see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111107. The workaround for GCC 15- is to compile with `-mincoming-stack-boundary=2 -mpreferred-stack-boundary=2`.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to