This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: PR target/34001: Incorrect x86 fastcall behavior
H.J. Lu wrote:
> stdcall is a Windows feature. However, using different calling
> conversions on Windows and non-Windows will make OS-independent
> assembly code hard to write. Given that we have been doing the wrong
> thing on Windows wthout noticing anything up to now, make it right
> shouldn't cause more trouble. We can add a warning when we detect the
> ABI correction.
> BTW, on Linux, we use regparm, which is more efficient than stdcall.
Like I said, I think this is for the x86 maintainers to decide. But, I
think that breaking backwards compatibility, especially at the binary
level, is something we ought to think about very carefully.
(650) 331-3385 x713