[project @ 2001-10-16 14:02:01 by rrt]
authorrrt <unknown>
Tue, 16 Oct 2001 14:03:12 +0000 (14:03 +0000)
committerrrt <unknown>
Tue, 16 Oct 2001 14:03:12 +0000 (14:03 +0000)
Comment dubious hack.

ghc/driver/mangler/ghc-asm.lprl
ghc/driver/split/ghc-split.lprl

index ca26221..8d3f60b 100644 (file)
@@ -421,7 +421,7 @@ sub mangle_asm {
     $i = 0; $chkcat[0] = 'misc'; $chk[0] = '';
 
     while (<INASM>) {
-       tr/\r//d if $TargetPlatform =~ /-mingw32$/;
+       tr/\r//d if $TargetPlatform =~ /-mingw32$/; # In case Perl doesn't convert line endings
        next if $T_STABBY && /^\.stab.*${T_US}__stg_split_marker/o;
        next if $T_STABBY && /^\.stab.*ghc.*c_ID/;
        next if /^\t\.def.*endef$/;
index 66f2be6..a101a2e 100644 (file)
@@ -139,7 +139,7 @@ sub ReadTMPIUpToAMarker {
     print STDERR "### BLOCK:$count:\n$str" if $Dump_asm_splitting_info;
 
     # return str
-    $str =~ tr/\r//d if $TargetPlatform =~ /-mingw32$/;
+    $str =~ tr/\r//d if $TargetPlatform =~ /-mingw32$/; # in case Perl doesn't convert line endings
     $str;
 }
 \end{code}