diff options
author | Peter Trommler <ptrommler@acm.org> | 2018-12-30 22:23:53 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-01-01 11:44:16 -0500 |
commit | 374e44704b64afafc1179127e6c9c5bf1715ef39 (patch) | |
tree | e55962e8ac605a6762a18e30c8614d772effb2eb /includes/CodeGen.Platform.hs | |
parent | ae4f1033cfe131fca9416e2993bda081e1f8c152 (diff) | |
download | haskell-374e44704b64afafc1179127e6c9c5bf1715ef39.tar.gz |
PPC NCG: Remove Darwin support
Support for Mac OS X on PowerPC has been dropped by Apple years ago. We
follow suit and remove PowerPC support for Darwin.
Fixes #16106.
Diffstat (limited to 'includes/CodeGen.Platform.hs')
-rw-r--r-- | includes/CodeGen.Platform.hs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/includes/CodeGen.Platform.hs b/includes/CodeGen.Platform.hs index 664942d878..dbd4cc9f90 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 @@ -903,7 +901,6 @@ freeReg 30 = False Then use r12 as temporary register, which is also what the C ABI does. -} -# endif # if defined(REG_Base) freeReg REG_Base = False # endif |