[project @ 2000-04-19 09:12:10 by simonmar]
authorsimonmar <unknown>
Wed, 19 Apr 2000 09:12:10 +0000 (09:12 +0000)
committersimonmar <unknown>
Wed, 19 Apr 2000 09:12:10 +0000 (09:12 +0000)
Fix a bug in previous commit, some .globls were getting thrown away.

ghc/driver/ghc-asm.lprl

index 4b221fe..20d9043 100644 (file)
@@ -795,10 +795,10 @@ sub mangle_asm {
             #
            if ( $TargetPlatform =~ /^i386/ && $to_move =~ /$TCOPYDIRVS/ ) {
                $j = $i + 1;
-               while ( $j < ($numchks - 1)  && $chk[$j] =~ /$T_CONST_LBL/) {
+               while ( $j < $numchks  && $chk[$j] =~ /$T_CONST_LBL/) {
                        $j++;
                }
-               if ( $j < ($numchks - 1)) {
+               if ( $j < $numchks ) {
                        $chk[$j] = $to_move . $chk[$j];
                }
            }