[commit: ghc] wip/T16106: PPC NCG: Remove Darwin specific code (7220d63)
git at git.haskell.org
git at git.haskell.org
Sun Mar 31 15:06:23 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T16106
Link : http://ghc.haskell.org/trac/ghc/changeset/7220d639754ed9c408b27fbad1e9a4b05729cd10/ghc
>---------------------------------------------------------------
commit 7220d639754ed9c408b27fbad1e9a4b05729cd10
Author: Peter Trommler <ptrommler at acm.org>
Date: Sun Dec 30 22:25:49 2018 +0100
PPC NCG: Remove Darwin specific code
>---------------------------------------------------------------
7220d639754ed9c408b27fbad1e9a4b05729cd10
includes/CodeGen.Platform.hs | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/includes/CodeGen.Platform.hs b/includes/CodeGen.Platform.hs
index 664942d..2545f0a 100644
--- a/includes/CodeGen.Platform.hs
+++ b/includes/CodeGen.Platform.hs
@@ -885,12 +885,10 @@ freeRegBase _ = True
#elif defined(MACHREGS_powerpc)
freeReg 0 = False -- Used by code setting the back chain pointer
- -- in stack reallocations on Linux
- -- r0 is not usable in all insns so also reserved
- -- on Darwin.
+ -- in stack reallocations on Linux.
+ -- Moreover r0 is not usable in all insns.
freeReg 1 = False -- The Stack Pointer
-# if !defined(MACHREGS_darwin)
--- most non-darwin powerpc OSes use r2 as a TOC pointer or something like that
+-- most ELF PowerPC OSes use r2 as a TOC pointer
freeReg 2 = False
freeReg 13 = False -- reserved for system thread ID on 64 bit
-- at least linux in -fPIC relies on r30 in PLT stubs
More information about the ghc-commits
mailing list