summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2020-05-28 14:37:43 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-05-29 13:35:24 -0400
commitaac19e6caa0c94e159610f124114186ee20bcdd1 (patch)
tree66a483b85b0b1e625b53f7e0105db9b95b6afd54
parent67738db10010fd28a8e997b5c8f83ea591b88a0e (diff)
downloadhaskell-aac19e6caa0c94e159610f124114186ee20bcdd1.tar.gz
PPC NCG: No per-symbol .section ".toc" directives
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"
-