[project @ 2001-03-26 16:52:03 by simonmar]
authorsimonmar <unknown>
Mon, 26 Mar 2001 16:52:03 +0000 (16:52 +0000)
committersimonmar <unknown>
Mon, 26 Mar 2001 16:52:03 +0000 (16:52 +0000)
if the STOLEN_X86_REGS arg is missing, assume 4.

ghc/driver/mangler/ghc-asm.lprl

index cd4d99a..68a0cdb 100644 (file)
@@ -66,7 +66,11 @@ $ifile = $ARGV[0];
 $ofile = $ARGV[1];
 
 if ( $TargetPlatform =~ /^i386-/ ) {
-    $StolenX86Regs = $ARGV[2];
+    if ($ARGV[2] eq '') {
+       $StolenX86Regs = 4;
+    } else {
+        $StolenX86Regs = $ARGV[2];
+    }
 }
 
 &mangle_asm($ifile,$ofile);