[Git][ghc/ghc][master] PPC: display foreign label in panic message (cf #23969)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sat Jun 15 07:20:53 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
a5994380 by Sylvain Henry at 2024-06-15T03:20:29-04:00
PPC: display foreign label in panic message (cf #23969)

- - - - -


1 changed file:

- compiler/GHC/CmmToAsm/PPC/Ppr.hs


Changes:

=====================================
compiler/GHC/CmmToAsm/PPC/Ppr.hs
=====================================
@@ -587,7 +587,7 @@ pprInstr platform instr = case instr of
 
    JMP lbl _
      -- We never jump to ForeignLabels; if we ever do, c.f. handling for "BL"
-     | isForeignLabel lbl -> panic "PPC.Ppr.pprInstr: JMP to ForeignLabel"
+     | isForeignLabel lbl -> pprPanic "PPC.Ppr.pprInstr: JMP to ForeignLabel" (pprDebugCLabel platform lbl)
      | otherwise ->
        line $ hcat [ -- an alias for b that takes a CLabel
            text "\tb\t",



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a59943803a3933e06efa11dc1c2f8c8ded8a4720

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a59943803a3933e06efa11dc1c2f8c8ded8a4720
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/20240615/cfa67700/attachment-0001.html>


More information about the ghc-commits mailing list