diff options
author | Jonghyun Park <parjong@gmail.com> | 2017-03-31 06:20:01 +0900 |
---|---|---|
committer | Bruce Forstall <brucefo@microsoft.com> | 2017-03-30 14:20:01 -0700 |
commit | 5e03cb09e3754e4a3430ba424a1352b9c01ff098 (patch) | |
tree | 49bf1aa9faf93f4168dcfdf18c3886152f556617 /src/vm/fcall.h | |
parent | 4763f1121e62f45fec56cef6234446cd1ad7b8ab (diff) | |
download | coreclr-5e03cb09e3754e4a3430ba424a1352b9c01ff098.tar.gz coreclr-5e03cb09e3754e4a3430ba424a1352b9c01ff098.tar.bz2 coreclr-5e03cb09e3754e4a3430ba424a1352b9c01ff098.zip |
[x86/Linux] Use CDECL instead of STDCALL (#10410)
[x86/Linux] Use CDECL instead of STDCALL
Use STDCALL/THISCALL/FASTCALL if callconv is explicitly specified
Merge two adjustment (argument/alignment) into one
Diffstat (limited to 'src/vm/fcall.h')
-rw-r--r-- | src/vm/fcall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/fcall.h b/src/vm/fcall.h index 0e965573c1..c3f026bccb 100644 --- a/src/vm/fcall.h +++ b/src/vm/fcall.h @@ -377,7 +377,7 @@ LPVOID __FCThrowArgument(LPVOID me, enum RuntimeExceptionKind reKind, LPCWSTR ar // Choose the appropriate calling convention for FCALL helpers on the basis of the JIT calling convention #ifdef __GNUC__ -#define F_CALL_CONV __attribute__((stdcall, regparm(3))) +#define F_CALL_CONV __attribute__((cdecl, regparm(3))) // GCC fastcall convention (simulated via stdcall) is different from MSVC fastcall convention. GCC can use up // to 3 registers to store parameters. The registers used are EAX, EDX, ECX. Dummy parameters and reordering |