Sparc*: Prevent GHC from doing unaligned accesses
authorErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 1 Nov 2016 19:26:22 +0000 (06:26 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 1 Nov 2016 19:26:22 +0000 (06:26 +1100)
commit19ce8a53e8074a7e56fd462e43750386e67edcd4
treeb5b5bb088009736e55421fe0fdc63ad89bf3174c
parent0b70ec0c3b72a7f87776743e64b47b65ef0ca4a5
Sparc*: Prevent GHC from doing unaligned accesses

This is specifically for the C backend on Sparc64 (which has
no native backend) but is also required for Sparc when building
un-registerised.

Bug reported via Debian (patch included):

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842780

Test Plan: validate

Reviewers: hvr, Phyx, bgamari, austin, simonmar

Reviewed By: Phyx

Subscribers: jrtc27, thomie

Differential Revision: https://phabricator.haskell.org/D2661

GHC Trac Issues: #12793
compiler/cmm/PprC.hs