clang 20.1.8+21.1.1: __stdcall__ warning only from Cygwin version
Jeremy Drake
cygwin@jdrake.com
Sat Sep 13 23:14:38 GMT 2025
On Sat, 13 Sep 2025, ASSI via Cygwin wrote:
> Jeremy Drake via Cygwin writes:
> > Another thing that's got me confused in that vicinity is sysv_abi vs
> > ms_abi calling convention attribute. I think Cygwin defaults to ms_abi
> > so should allow __attribute__((sysv_abi)) to override, but I think it
> > would warn about that.
>
> No.
>
> https://repo.or.cz/gcc/cygwin-gcc.git/commitdiff/c7930728e2c3e57fac0c04b706f520aa13b1f005
Just to clarify that "no", it seems that commit matches what I expect: the
default is ms_abi, and sysv_abi overrides that and is accepted without
warning. I believe clang *would* emit a warning for explicit ms_abi on
Windows (MSVC/MinGW, and soon Cygwin will follow that too).
More information about the Cygwin
mailing list