This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]