Bläddra i källkod

* fixed set_first_temp_offset for use_fixed_stack

git-svn-id: trunk@2866 -
Jonas Maebe 19 år sedan
förälder
incheckning
3765a9bbb8
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      compiler/i386/cpupi.pas

+ 2 - 1
compiler/i386/cpupi.pas

@@ -60,7 +60,8 @@ unit cpupi;
       begin
       begin
         if use_fixed_stack then
         if use_fixed_stack then
           begin
           begin
-            if not(po_assembler in procdef.procoptions) then
+            if not(po_assembler in procdef.procoptions) and
+               (tg.direction > 0) then
               tg.setfirsttemp(tg.direction*maxpushedparasize);
               tg.setfirsttemp(tg.direction*maxpushedparasize);
           end;
           end;
       end;
       end;