[commit: ghc] wip/T15916: PPC NCG: GOT declaration for all 64-bit ELF systems (25fffed)

git at git.haskell.org git at git.haskell.org
Sat Jan 5 08:47:11 UTC 2019


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

On branch  : wip/T15916
Link       : http://ghc.haskell.org/trac/ghc/changeset/25fffed48ea782e7691dc832c694caa7d200e14b/ghc

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

commit 25fffed48ea782e7691dc832c694caa7d200e14b
Author: Peter Trommler <ptrommler at acm.org>
Date:   Sat Dec 29 10:12:48 2018 +0100

    PPC NCG: GOT declaration for all 64-bit ELF systems


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

25fffed48ea782e7691dc832c694caa7d200e14b
 compiler/nativeGen/PIC.hs | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/compiler/nativeGen/PIC.hs b/compiler/nativeGen/PIC.hs
index 7778729..280a87e 100644
--- a/compiler/nativeGen/PIC.hs
+++ b/compiler/nativeGen/PIC.hs
@@ -527,19 +527,17 @@ pprGotDeclaration _ _ OSAIX
                  ]
 
 
--- PPC 64 ELF v1 needs a Table Of Contents (TOC) on Linux
-pprGotDeclaration _ (ArchPPC_64 ELF_V1) OSLinux
+-- PPC 64 ELF v1 needs a Table Of Contents (TOC)
+pprGotDeclaration _ (ArchPPC_64 ELF_V1) _
         = text ".section \".toc\",\"aw\""
 -- In ELF v2 we also need to tell the assembler that we want ABI
 -- version 2. This would normally be done at the top of the file
 -- right after a file directive, but I could not figure out how
 -- to do that.
-pprGotDeclaration _ (ArchPPC_64 ELF_V2) OSLinux
+pprGotDeclaration _ (ArchPPC_64 ELF_V2) _
         = vcat [ text ".abiversion 2",
                  text ".section \".toc\",\"aw\""
                ]
-pprGotDeclaration _ (ArchPPC_64 _) _
-        = panic "pprGotDeclaration: ArchPPC_64 only Linux supported"
 
 -- Emit GOT declaration
 -- Output whatever needs to be output once per .s file.



More information about the ghc-commits mailing list