From: Debian Haskell Group Date: Sat, 21 Sep 2019 10:06:31 +0000 (+0100) Subject: powerpc-fix-64-bit-comparision X-Git-Tag: archive/raspbian/8.8.1+dfsg1+is+8.6.5+dfsg1-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7dd800675199094e19dde1db0f2983c73ee6fa95;p=ghc.git powerpc-fix-64-bit-comparision $ ./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 . Origin: https://gitlab.haskell.org/ghc/ghc/commit/25dce3fc05e4788240ac6d192919063a9f548f7f Last-Update: 2019-08-09 Gbp-Pq: Name powerpc-fix-64-bit-comparision.patch --- diff --git a/compiler/nativeGen/PPC/CodeGen.hs b/compiler/nativeGen/PPC/CodeGen.hs index 88b96929..cff9273d 100644 --- a/compiler/nativeGen/PPC/CodeGen.hs +++ b/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