darcs patch: New codegen: GC calling convention must use registers.
Edward Z. Yang
ezyang at MIT.EDU
Fri Feb 18 02:21:52 CET 2011
1 patch for repository http://darcs.haskell.org/ghc:
Fri Feb 18 01:17:45 GMT 2011 Edward Z. Yang <ezyang at mit.edu>
* New codegen: GC calling convention must use registers.
Previously, on register-deficient architectures like x86-32,
the new code generator would emit code for calls to stg_gc_l1,
stg_gc_d1 and stg_gc_f1 that pushed their single argument on
to the stack, while the functions themselves expected the
argument to live in L1, D1 and F1 (respectively). This was
because cmmCall with the GC calling convention allocated real
registers, not virtual registers.
This patch modifies the code for assigning registers/stack slots
to use the right calling convention for GC and adds an assertion
to ensure it did it properly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 290028 bytes
Desc: A darcs patch for your repository!
URL: <http://www.haskell.org/pipermail/cvs-ghc/attachments/20110217/df553877/attachment-0001.bin>
More information about the Cvs-ghc
mailing list