X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2Fmangler%2Fghc-asm.lprl;h=34f475817b93556d798faa1ebb5e123c7e9ca4c4;hb=24c1c71fc2a6a8d0a90d6ddf3ccf778772ccac7d;hp=8cfd5b571663ab35ade4994d361a2ea1b7922598;hpb=07f4b8136574357e0d8d50496b535de5c9735dc5;p=ghc-hetmet.git diff --git a/driver/mangler/ghc-asm.lprl b/driver/mangler/ghc-asm.lprl index 8cfd5b5..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)$/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 ) {