Browse Source

* call fninit to avoid make crashes

pierre 25 years ago
parent
commit
7f3524c465
1 changed files with 8 additions and 1 deletions
  1. 8 1
      tests/getret.pp

+ 8 - 1
tests/getret.pp

@@ -64,4 +64,11 @@ begin
   else
     write(retfile,dosexitcode);
   close(retfile);
-end.
+{$ifdef CPU86}
+  { reset the FPU to avoid crashing make }
+{$asmmode att}
+  asm
+    fninit
+  end;
+{$endif CPU86}
+end.