[Git][ghc/ghc][master] PPC NCG: No per-symbol .section ".toc" directives
Marge Bot
gitlab at gitlab.haskell.org
Fri May 29 17:35:38 UTC 2020
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
aac19e6c by Peter Trommler at 2020-05-29T13:35:24-04:00
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
- - - - -
1 changed file:
- compiler/GHC/CmmToAsm/PIC.hs
Changes:
=====================================
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"
-
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/aac19e6caa0c94e159610f124114186ee20bcdd1
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/aac19e6caa0c94e159610f124114186ee20bcdd1
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200529/15abdb58/attachment.html>
More information about the ghc-commits
mailing list