[commit: ghc] wip/T16106: PPC NCG: Remove Darwin specific code (c899a9d)

git at git.haskell.org git at git.haskell.org
Mon Dec 31 12:09:39 UTC 2018


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

On branch  : wip/T16106
Link       : http://ghc.haskell.org/trac/ghc/changeset/c899a9d7681f27344aa22ad94692b9010e2571f2/ghc

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

commit c899a9d7681f27344aa22ad94692b9010e2571f2
Author: Peter Trommler <ptrommler at acm.org>
Date:   Sun Dec 30 22:25:49 2018 +0100

    PPC NCG: Remove Darwin specific code


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

c899a9d7681f27344aa22ad94692b9010e2571f2
 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