From cd7feb366c39d90940d3a8b731c564ce576eb6a4 Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Mon, 18 May 1998 08:51:35 +0000
Subject: [PATCH] [project @ 1998-05-18 08:51:35 by simonm] sparc-sun-solaris2
 uses .LLC<n> to refer to local string constants.

---
 ghc/driver/ghc-split.lprl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ghc/driver/ghc-split.lprl b/ghc/driver/ghc-split.lprl
index 8c140ccd23e0..91a34d256e6a 100644
--- a/ghc/driver/ghc-split.lprl
+++ b/ghc/driver/ghc-split.lprl
@@ -200,7 +200,7 @@ sub process_asm_block_sparc {
     $str =~ s/^\.stabs "(ghc\d+\.c)"/.stabs "$ifile_root.hc"/g; # HACK HACK
 
     # remove/record any literal constants defined here
-    while ( $str =~ /(\t\.align .\n\.?(LC\d+):\n(\t\.asci[iz].*\n)+)/ ) {
+    while ( $str =~ /(\t\.align .\n\.?(L?LC\d+):\n(\t\.asci[iz].*\n)+)/ ) {
 	local($label) = $2;
 	local($body)  = $1;
 
@@ -209,7 +209,7 @@ sub process_asm_block_sparc {
 
 	$LocalConstant{$label} = $body;
 	
-	$str =~ s/\t\.align .\n\.?LC\d+:\n(\t\.asci[iz].*\n)+//;
+	$str =~ s/\t\.align .\n\.?LL?C\d+:\n(\t\.asci[iz].*\n)+//;
     }
 
     # inject definitions for any local constants now used herein
-- 
GitLab