Disable FPU inlining on m68k
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Fri, 17 Mar 2023 12:45:28 +0000 (12:45 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Fri, 17 Mar 2023 12:45:28 +0000 (12:45 +0000)
Forwarded: https://bugs.freepascal.org/view.php?id=37250
Last-Update: 2021-01-22

There is a bug in the FPU code on m68k which causes the
bootstrap to fail (upstream bug #37250). Until the bug
has been fixed, disable FPU inlining to work around the
issue and fix the bootstrap on m68k.

Gbp-Pq: Name m68k-disable-FPU-inlining.patch

fpcsrc/compiler/m68k/n68kadd.pas

index ee1c29e3b94ec8e4248a20aacf4887dd3bd1739e..f24b2d233d0fb02966509e6d9f24445a843d093a 100644 (file)
@@ -148,10 +148,7 @@ implementation
 
     function t68kaddnode.inlineable_realconstnode(const n: tnode): boolean;
       begin
-        result:=(n.nodetype = realconstn) and
-            not ((trealconstnode(n).value_real=MathInf.Value) or
-                 (trealconstnode(n).value_real=MathNegInf.Value) or
-                 (trealconstnode(n).value_real=MathQNaN.value));
+        result:=false;
       end;