Tweak the mangler; fixes trac #2871
authorIan Lynagh <igloo@earth.li>
Wed, 11 Feb 2009 15:03:40 +0000 (15:03 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 11 Feb 2009 15:03:40 +0000 (15:03 +0000)
It was getting confused by lines like:
 # 9 "C:\Temp\/ghc620_0/ghc620_0.hc" 1

driver/mangler/ghc-asm.lprl

index 7fd1855..34f4758 100644 (file)
@@ -580,7 +580,7 @@ sub mangle_asm {
        next if /${T_PRE_APP}(NO_)?APP/om; 
        next if /^;/m && $TargetPlatform =~ /^hppa/m;
 
-       next if /(^$|^\t\.file\t|^ # )/m && $TargetPlatform =~ /^(mips|ia64)-/m;
+       next if /(^$|^\t\.file\t|^ # )/m && $TargetPlatform =~ /(^mips-|^ia64-|-mingw32$)/m;
 
        if ( $TargetPlatform =~ /^mips-/m 
          && /^\t\.(globl\S+\.text|comm\t)/m ) {