在 2026-5-3 21:00, Pali Rohár 写道:
I'm not exactly sure.Same check is in other winpthreads code, so I followed pattern and used it in winpthreads tests too, so code in winpthreads is consistent.
GCC 4.2 was released 19 years ago, which is really 'too old'.BTW, Clang in GNU mode also identifies itself as GCC 4.2, so the check really doesn't do anything. I will try removing those checks, and if that passes the CI, I can push these changes.
I know, I have figured it out that it is gcc bug and already found bug reports on internet. Maybe if the workaround with `-mincoming-stack-boundary=2 -mpreferred-stack-boundary=2` is working, could we add it to mingw-w64 CFLAGS when compiling with gcc-pre-15 and force_align_arg_pointer would not be needed to have it on every place in mingw-w64 source code?
It is still required that every user compile their code with `-mincoming-stack-boundary=2 -mpreferred-stack-boundary=2`. As the issue has been fixed in GCC 16, there's likely no point in adding it any more.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
