Forráskód Böngészése

Do not add first_param_offset for po_nostackframe and po_assembler in calc_stack_size

git-svn-id: trunk@22716 -
pierre 12 éve
szülő
commit
124499474c
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      compiler/sparc/cpupi.pas

+ 5 - 1
compiler/sparc/cpupi.pas

@@ -67,7 +67,11 @@ implementation
           Alignment must be the max available, as doubles require
           Alignment must be the max available, as doubles require
           8 byte alignment
           8 byte alignment
         }
         }
-        result:=Align(tg.direction*tg.lasttemp+maxpushedparasize+target_info.first_parm_offset,current_settings.alignment.localalignmax);
+        if (po_assembler in procdef.procoptions) or
+           (po_nostackframe in procdef.procoptions) then
+          result:=Align(tg.direction*tg.lasttemp+maxpushedparasize,current_settings.alignment.localalignmax)
+        else
+          result:=Align(tg.direction*tg.lasttemp+maxpushedparasize+target_info.first_parm_offset,current_settings.alignment.localalignmax);
       end;
       end;