powerpc32: fix stack allocation code generation
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 20 Mar 2019 22:46:33 +0000 (22:46 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 31 May 2019 05:57:31 +0000 (01:57 -0400)
commitbb2ee86a4cf47eb56d4b8b4a552537449d492f88
tree939c78eddac3380c5bcd88a0b0f3d8ffc0fec09f
parent973077ac63c79988f2d5f25d13b60dce82f9e8dd
powerpc32: fix stack allocation code generation

When ghc was built for powerpc32 built failed as:

It's a fallout of commit 3f46cffcc2850e68405a1
("PPC NCG: Refactor stack allocation code") where
word size used to be
    II32/II64
and changed to
    II8/panic "no width for given number of bytes"
    widthFromBytes ((platformWordSize platform) `quot` 8)

The change restores initial behaviour by removing extra division.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
compiler/nativeGen/PPC/Instr.hs