X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2Fmangler%2Fghc-asm.lprl;h=34f475817b93556d798faa1ebb5e123c7e9ca4c4;hb=a99906e5272be7c6212327a32c83eac0a9b08b4b;hp=ea01dc8dc86f1010a3cfb06475298018677be68f;hpb=89eac8928317774fdc3f283d78d3ff3cb315db5e;p=ghc-hetmet.git diff --git a/driver/mangler/ghc-asm.lprl b/driver/mangler/ghc-asm.lprl index ea01dc8..34f4758 100644 --- a/driver/mangler/ghc-asm.lprl +++ b/driver/mangler/ghc-asm.lprl @@ -216,7 +216,7 @@ sub init_TARGET_STUFF { $T_HDR_vector = "\.text\n\t\.align 8\n"; #--------------------------------------------------------# - } elsif ( $TargetPlatform =~ /^x86_64-.*-(linux|openbsd|freebsd)$/m ) { + } elsif ( $TargetPlatform =~ /^x86_64-.*-(linux|openbsd|freebsd|netbsd)$/m ) { $T_STABBY = 0; # 1 iff .stab things (usually if a.out format) $T_US = ''; # _ if symbols have an underscore on the front @@ -324,7 +324,7 @@ sub init_TARGET_STUFF { #--------------------------------------------------------# } elsif ( $TargetPlatform =~ /^i386-apple-darwin.*/m ) { - # Apple PowerPC Darwin/MacOS X. + # Apple i386 Darwin/MacOS X. $T_STABBY = 0; # 1 iff .stab things (usually if a.out format) $T_US = '_'; # _ if symbols have an underscore on the front $T_PRE_APP = 'DOESNT APPLY'; # regexp that says what comes before APP/NO_APP @@ -353,7 +353,7 @@ sub init_TARGET_STUFF { #--------------------------------------------------------# } elsif ( $TargetPlatform =~ /^x86_64-apple-darwin.*/m ) { - # Apple PowerPC Darwin/MacOS X. + # Apple amd64 Darwin/MacOS X. $T_STABBY = 0; # 1 iff .stab things (usually if a.out format) $T_US = '_'; # _ if symbols have an underscore on the front $T_PRE_APP = 'DOESNT APPLY'; # regexp that says what comes before APP/NO_APP @@ -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 ) {