* [gentoo-commits] gentoo-x86 commit in dev-lang/ghc/files: ghc-7.4.1-ticket-7339-fix-unaligned-unreg.patch
@ 2012-11-14 9:34 Sergei Trofimovich (slyfox)
0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich (slyfox) @ 2012-11-14 9:34 UTC (permalink / raw
To: gentoo-commits
slyfox 12/11/14 09:34:39
Added: ghc-7.4.1-ticket-7339-fix-unaligned-unreg.patch
Log:
Version bump up to 7.4.2.
(Portage version: 2.2.0_alpha142_p5/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
Revision Changes Path
1.1 dev-lang/ghc/files/ghc-7.4.1-ticket-7339-fix-unaligned-unreg.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.4.1-ticket-7339-fix-unaligned-unreg.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.4.1-ticket-7339-fix-unaligned-unreg.patch?rev=1.1&content-type=text/plain
Index: ghc-7.4.1-ticket-7339-fix-unaligned-unreg.patch
===================================================================
From 26f8466507bd9383e0a7d1e62e397eca4a13822a Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyfox@gentoo.org>
Date: Tue, 13 Nov 2012 01:39:14 +0300
Subject: [PATCH] Fix unaligned access on alpha and friends (ticket #7339)
Assume unknown arch (alpha and mips) an alignment sensitive target.
Otherwise on alpha it causes ghc-7.4.1 to generate invalud lexers.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
compiler/cmm/PprC.hs | 1 +
1 file changed, 1 insertion(+)
diff --git a/compiler/cmm/PprC.hs b/compiler/cmm/PprC.hs
index 21826f8..8cdcde6 100644
--- a/compiler/cmm/PprC.hs
+++ b/compiler/cmm/PprC.hs
@@ -963,6 +963,7 @@ cLoad platform expr rep
| otherwise
= char '*' <> parens (cCast platform (machRepPtrCType rep) expr)
where -- On these platforms, unaligned loads are known to cause problems
+ bewareLoadStoreAlignment ArchUnknown = True -- like alpha or mips
bewareLoadStoreAlignment (ArchARM {}) = True
bewareLoadStoreAlignment _ = False
--
1.8.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-14 9:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14 9:34 [gentoo-commits] gentoo-x86 commit in dev-lang/ghc/files: ghc-7.4.1-ticket-7339-fix-unaligned-unreg.patch Sergei Trofimovich (slyfox)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox