Explorar o código

* release temp when downgrading fpuregister value

git-svn-id: trunk@8530 -
peter %!s(int64=18) %!d(string=hai) anos
pai
achega
2f044481ae
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/x86/cgx86.pas

+ 2 - 1
compiler/x86/cgx86.pas

@@ -873,9 +873,10 @@ unit cgx86;
             (tosize<fromsize) then
            begin
              { can't round down to lower precision in x87 :/ }
-             tg.gettemp(list,tcgsize2size[tosize],tt_persistent,href);
+             tg.gettemp(list,tcgsize2size[tosize],tt_normal,href);
              a_loadfpu_reg_ref(list,fromsize,tosize,NR_ST,href);
              a_loadfpu_ref_reg(list,tosize,tosize,href,NR_ST);
+             tg.ungettemp(list,href);
            end;
        end;