From 168e69c3281912031727d2fb83604c5db9cd94b0 Mon Sep 17 00:00:00 2001
From: simonmar <unknown>
Date: Thu, 29 Jun 2000 13:18:38 +0000
Subject: [PATCH] [project @ 2000-06-29 13:18:38 by simonmar] sparc needs the
 TMOVEDIRVS hack too

---
 ghc/driver/mangler/ghc-asm.lprl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ghc/driver/mangler/ghc-asm.lprl b/ghc/driver/mangler/ghc-asm.lprl
index 29a6894d1a51..b5db6220882d 100644
--- a/ghc/driver/mangler/ghc-asm.lprl
+++ b/ghc/driver/mangler/ghc-asm.lprl
@@ -815,7 +815,7 @@ sub mangle_asm {
 	    #    blah_closure:
 	    #		...
             #
-	    if ( $TargetPlatform =~ /^i386/ && $to_move =~ /$TCOPYDIRVS/ ) {
+	    if ( $TargetPlatform =~ /^(i386|sparc)/ && $to_move =~ /$TCOPYDIRVS/ ) {
 		$j = $i + 1;
 		while ( $j < $numchks  && $chk[$j] =~ /$T_CONST_LBL/) {
 			$j++;
-- 
GitLab