
#10383: AArch64: get GHC Calling convention working
----------------------------------------+----------------------------------
Reporter: erikd | Owner: erikd
Type: feature request | Status: new
Priority: normal | Milestone: 7.12.1
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: aarch64
Type of failure: Building GHC failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
----------------------------------------+----------------------------------
Comment (by erikd):
Had a further (at least 3rd or 4th) look at the Aarch64 version of the
`StgRun` function in `rts/StgCRun.c`. I noticed that some some of the
registers that are pushed and popped on/off the stack were not listed in
the "clobbered registers" part of the `__asm__` definition.
Came up with this patch:
{{{
commit 5f75cbcea67cbb587a7d640f6241469744ab026f
Author: Erik de Castro Lopo