From 24c1c71fc2a6a8d0a90d6ddf3ccf778772ccac7d Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 11 Feb 2009 15:03:40 +0000 Subject: [PATCH] Tweak the mangler; fixes trac #2871 It was getting confused by lines like: # 9 "C:\Temp\/ghc620_0/ghc620_0.hc" 1 --- driver/mangler/ghc-asm.lprl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/mangler/ghc-asm.lprl b/driver/mangler/ghc-asm.lprl index 7fd1855..34f4758 100644 --- a/driver/mangler/ghc-asm.lprl +++ b/driver/mangler/ghc-asm.lprl @@ -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 ) { -- 1.7.10.4