powerpc32: fix stack allocation code generation

Authored by trofi on Mar 20 2019, 5:46 PM.

Description

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>
(cherry picked from commit bb2ee86a4cf47eb56d4b8b4a552537449d492f88)

Details

Committed
bgamariMon, Jun 24, 5:35 PM
Parents
rGHC7ed5db876fd9: powerpc32: fix 64-bit comparison (#16465)
Branches
Unknown
Tags
Unknown