[project @ 2000-06-13 15:35:29 by simonm]
authorsimonm <unknown>
Tue, 13 Jun 2000 15:35:29 +0000 (15:35 +0000)
committersimonm <unknown>
Tue, 13 Jun 2000 15:35:29 +0000 (15:35 +0000)
fixup problem with '.' at the front of a local label.

ghc/driver/split/ghc-split.lprl

index 804b3eb..8c140cc 100644 (file)
@@ -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\.?(LC\d+):\n(\t\.asci[iz].*\n)+)/ ) {
        local($label) = $2;
        local($body)  = $1;
 
@@ -312,7 +312,7 @@ sub process_asm_block_iX86 {
     $str = "\.text\n\t.align 4\n" . $str;
 
     # remove/record any literal constants defined here
-    while ( ($str =~ /((\.?LC\d+):\n\t\.(ascii|string).*\n)/ )) {
+    while ( ($str =~ /(\.?(LC\d+):\n\t\.(ascii|string).*\n)/ )) {
        local($label) = $2;
        local($body)  = $1;