[GHC] #3336: Following gcc behaviour with regards to calling conventions on x86_64
GHC
cvs-ghc at haskell.org
Wed Nov 2 05:30:58 CET 2011
#3336: Following gcc behaviour with regards to calling conventions on x86_64
-----------------------------+----------------------------------------------
Reporter: JeffersonHeard | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.0.1
Component: Compiler | Version: 6.10.3
Resolution: fixed | Keywords: calling convention, stdcall
Testcase: | Blockedby:
Difficulty: Unknown | Os: Linux
Blocking: | Architecture: x86_64 (amd64)
Failure: None/Unknown |
-----------------------------+----------------------------------------------
Comment(by dmp@…):
commit 521157f905926556eaa02a8fbb2f0645efe24a80
{{{
Author: David M Peixotto <dmp at rice.edu>
Date: Thu Oct 20 09:18:19 2011 -0500
Ignore stdcall c-call in native codegen on x86_64
The stdcall calling convention is not supported on x86_64.
When an ffi import requests stdcall, a warning is issued as
desired by #3336. However, the native codegen was still
generating code that expected the callee to cleanup the
stack arguments when calling a c function that requests
stdcall.
This patch changes the codegen to actually use the ccall
calling convention as intended.
Signed-off-by: David Terei <davidterei at gmail.com>
compiler/nativeGen/X86/CodeGen.hs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3336#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list