[commit: ghc] wip/aarch64-regd: rts/StgCRun.c: Add d15 to clobbered regs (8e91e82)

git at git.haskell.org git at git.haskell.org
Mon Dec 21 21:16:04 UTC 2015


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

On branch  : wip/aarch64-regd
Link       : http://ghc.haskell.org/trac/ghc/changeset/8e91e82b0d1deea5f15b389967cfb1508a968341/ghc

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

commit 8e91e82b0d1deea5f15b389967cfb1508a968341
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date:   Tue Oct 13 09:45:39 2015 +1100

    rts/StgCRun.c: Add d15 to clobbered regs


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

8e91e82b0d1deea5f15b389967cfb1508a968341
 rts/StgCRun.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/rts/StgCRun.c b/rts/StgCRun.c
index c9bbef0..9e80d02 100644
--- a/rts/StgCRun.c
+++ b/rts/StgCRun.c
@@ -834,7 +834,12 @@ StgRun(StgFunPtr f, StgRegTable *basereg) {
         "%x19", "%x20", "%x21", "%x22", "%x23", "%x24", "%x25",
         "%x26", "%x27", "%x28", /* Exclude %x29 (frame pointer) */
         "%x30",
-        "%d8", "%d9", "%d10", "%d11", "%d12", "%d13", "%d14"
+        "%d8", "%d9", "%d10", "%d11", "%d12", "%d13", "%d14", "%d15"
+        /* Since all these registers listed as clobbered are being explicitly
+         * saved and restored, they should probably not be listed as
+         * clobbered. Leaving them as is for now while I debug other
+         * issues.
+         */
     );
     return r;
 }



More information about the ghc-commits mailing list