Browse Source

* internalerror 10 for inlined math functions fixed

florian 25 years ago
parent
commit
26f38e15e3
1 changed files with 9 additions and 3 deletions
  1. 9 3
      compiler/cg386inl.pas

+ 9 - 3
compiler/cg386inl.pas

@@ -1440,7 +1440,10 @@ implementation
                          inc(fpuvaroffset);
                          inc(fpuvaroffset);
                       end;
                       end;
                     LOC_REFERENCE,LOC_MEM:
                     LOC_REFERENCE,LOC_MEM:
-                      floatload(pfloatdef(p^.left^.resulttype)^.typ,p^.left^.location.reference);
+                      begin
+                         floatload(pfloatdef(p^.left^.resulttype)^.typ,p^.left^.location.reference);
+                         del_reference(p^.left^.location.reference);
+                      end
                     else
                     else
                       internalerror(309991);
                       internalerror(309991);
                  end;
                  end;
@@ -1510,7 +1513,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.90  2000-01-09 23:16:05  peter
+  Revision 1.91  2000-01-24 20:11:10  florian
+    * internalerror 10 for inlined math functions fixed
+
+  Revision 1.90  2000/01/09 23:16:05  peter
     * added st_default stringtype
     * added st_default stringtype
     * genstringconstnode extended with stringtype parameter using st_default
     * genstringconstnode extended with stringtype parameter using st_default
       will do the old behaviour
       will do the old behaviour
@@ -1653,4 +1659,4 @@ end.
     * some fixes for qword
     * some fixes for qword
     * start of register calling conventions
     * start of register calling conventions
 
 
-}
+}