summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2020-05-28 14:37:43 +0200
committerPeter Trommler <ptrommler@acm.org>2020-05-28 14:37:43 +0200
commitc9015db1c84382473d6094a36fbfdbb638202b5d (patch)
tree04c5d97e883d11ad042d693688eac1d8649e6730
parentd6203f24cf421749616a247c047a9b44192f963a (diff)
downloadhaskell-wip/T18250.tar.gz
PPC NCG: No per-symbol .section ".toc" directiveswip/T18250
All position independent symbols are collected during code generation and emitted in one go. Prepending each symbol with a .section ".toc" directive is redundant. This patch drops the per-symbol directives leading to smaller assembler files. Fixes #18250
-rw-r--r--compiler/GHC/CmmToAsm/PIC.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/GHC/CmmToAsm/PIC.hs b/compiler/GHC/CmmToAsm/PIC.hs
index 87bc5968d6..1eb5f14c56 100644
--- a/compiler/GHC/CmmToAsm/PIC.hs
+++ b/compiler/GHC/CmmToAsm/PIC.hs
@@ -682,7 +682,6 @@ pprImportedSymbol dflags config importedLbl = case (arch,os) of
-> case dynamicLinkerLabelInfo importedLbl of
Just (SymbolPtr, lbl)
-> vcat [
- text ".section \".toc\", \"aw\"",
text ".LC_" <> pprCLabel dflags lbl <> char ':',
text "\t.quad" <+> pprCLabel dflags lbl ]
_ -> empty
@@ -845,4 +844,3 @@ initializePicBase_x86 ArchX86 OSDarwin picReg
initializePicBase_x86 _ _ _ _
= panic "initializePicBase_x86: not needed"
-