[commit: ghc] master: We do emit a warning for stdcall now. (c0ab767)
git at git.haskell.org
git at git.haskell.org
Sat Dec 27 15:09:46 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/c0ab76744c6b3397ac56192b320ff63e5b029c54/ghc
>---------------------------------------------------------------
commit c0ab76744c6b3397ac56192b320ff63e5b029c54
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date: Sat Dec 27 10:10:37 2014 -0500
We do emit a warning for stdcall now.
Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>
>---------------------------------------------------------------
c0ab76744c6b3397ac56192b320ff63e5b029c54
compiler/prelude/ForeignCall.hs | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/compiler/prelude/ForeignCall.hs b/compiler/prelude/ForeignCall.hs
index 0a7a838..9afc249 100644
--- a/compiler/prelude/ForeignCall.hs
+++ b/compiler/prelude/ForeignCall.hs
@@ -138,11 +138,7 @@ ccall: Caller allocates parameters, *and* deallocates them.
stdcall: Caller allocates parameters, callee deallocates.
Function name has @N after it, where N is number of arg bytes
- e.g. _Foo at 8
-
-ToDo: The stdcall calling convention is x86 (win32) specific,
-so perhaps we should emit a warning if it's being used on other
-platforms.
+ e.g. _Foo at 8. This convention is x86 (win32) specific.
See: http://www.programmersheaven.com/2/Calling-conventions
-}
More information about the ghc-commits
mailing list