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>

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>May 31 2019, 12:57 AM
Parents
rGHC973077ac63c7: powerpc32: fix 64-bit comparison (#16465)
Branches
Unknown
Tags
Unknown