[commit: ghc] master: CmmParse: Clarify description of calling convention (6638bfd)

git at git.haskell.org git at git.haskell.org
Sat Oct 17 14:50:36 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6638bfd36b4189935e8e26fe0479ffa45aa58243/ghc

>---------------------------------------------------------------

commit 6638bfd36b4189935e8e26fe0479ffa45aa58243
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Fri Oct 2 23:49:35 2015 +0200

    CmmParse: Clarify description of calling convention


>---------------------------------------------------------------

6638bfd36b4189935e8e26fe0479ffa45aa58243
 compiler/cmm/CmmParse.y | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/compiler/cmm/CmmParse.y b/compiler/cmm/CmmParse.y
index 000f805..555aed2 100644
--- a/compiler/cmm/CmmParse.y
+++ b/compiler/cmm/CmmParse.y
@@ -190,7 +190,10 @@ jump f (info_ptr, field1,..,fieldN) (arg1,..,argN)
 
 where info_ptr and field1..fieldN describe the stack frame, and
 arg1..argN are the arguments passed to f using the NativeNodeCall
-convention.
+convention. Note if a field is longer than a word (e.g. a D_ on
+a 32-bit machine) then the call will push as many words as
+necessary to the stack to accomodate it (e.g. 2).
+
 
 ----------------------------------------------------------------------------- -}
 



More information about the ghc-commits mailing list