[Git][haskell-team/DHG_packages][master] ghc: backport upstream patch to fix 64-bit comparision on powerpc

John Paul Adrian Glaubitz gitlab at salsa.debian.org
Fri Aug 9 12:25:02 BST 2019



John Paul Adrian Glaubitz pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
be6405f1 by John Paul Adrian Glaubitz at 2019-08-09T11:24:22Z
ghc: backport upstream patch to fix 64-bit comparision on powerpc

- - - - -


3 changed files:

- p/ghc/debian/changelog
- + p/ghc/debian/patches/powerpc-fix-64-bit-comparision.patch
- p/ghc/debian/patches/series


Changes:

=====================================
p/ghc/debian/changelog
=====================================
@@ -1,3 +1,11 @@
+ghc (8.6.5+dfsg1-4) UNRELEASED; urgency=medium
+
+  [ John Paul Adrian Glaubitz ]
+  * debian/patches/powerpc-fix-64-bit-comparision.patch
+    - backport upstream patch to fix 64-bit comparision on powerpc
+
+ -- John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>  Fri, 09 Aug 2019 13:21:37 +0200
+
 ghc (8.6.5+dfsg1-3) unstable; urgency=medium
 
   [ Gianfranco Costamagna ]


=====================================
p/ghc/debian/patches/powerpc-fix-64-bit-comparision.patch
=====================================
@@ -0,0 +1,29 @@
+Description: powerpc32: fix 64-bit comparison
+ On powerpc32 64-bit comparison code generated dangling
+ target labels. This caused ghc build failure as:
+
+    $ ./configure --target=powerpc-unknown-linux-gnu && make
+    ...
+    SCCs aren't in reverse dependent order
+    bad blockId n3U
+
+ This happened because condIntCode' in PPC codegen generated
+ label name but did not place the label into `cmp_lo` code block.
+
+ The change adds the `cmp_lo` label into the case of negative
+ comparison.
+ Signed-off-by: 's avatarSergei Trofimovich <slyfox at gentoo.org>
+ .
+Origin: https://gitlab.haskell.org/ghc/ghc/commit/25dce3fc05e4788240ac6d192919063a9f548f7f
+Last-Update: 2019-08-09
+
+--- ghc-8.6.5+dfsg1.orig/compiler/nativeGen/PPC/CodeGen.hs
++++ ghc-8.6.5+dfsg1/compiler/nativeGen/PPC/CodeGen.hs
+@@ -923,6 +923,7 @@ condIntCode' True cond W64 x y
+                  , BCC LE cmp_lo Nothing
+                  , CMPL II32 x_lo (RIReg y_lo)
+                  , BCC ALWAYS end_lbl Nothing
++		 , NEWBLOCK cmp_lo
+                  , CMPL II32 y_lo (RIReg x_lo)
+                  , BCC ALWAYS end_lbl Nothing
+ 


=====================================
p/ghc/debian/patches/series
=====================================
@@ -13,3 +13,4 @@ local-mathjax
 fix-build-using-unregisterized-v8.4
 risc-support.patch
 PprC-Add-support-for-adjacent-floats
+powerpc-fix-64-bit-comparision.patch



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/be6405f149f47655b8b9deb15981c68bfe2cfd89

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/be6405f149f47655b8b9deb15981c68bfe2cfd89
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20190809/d63eec3e/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list