handle po_nostackframe for calc_stack_size

git-svn-id: trunk@22718 -
This commit is contained in:
pierre 2012-10-18 09:44:11 +00:00
parent 124499474c
commit 7bd7cf275c

View File

@ -101,8 +101,14 @@ implementation
if tg.direction = -1 then
tg.setfirsttemp(0)
else
tg.setfirsttemp(maxpushedparasize+
floatregssave*sizeof(aint)+intregssave*sizeof(aint));
begin
if not (po_nostackframe in procdef.procoptions) then
tg.setfirsttemp(Align(maxpushedparasize+
floatregssave*sizeof(aint)+intregssave*sizeof(aint)
,max(current_settings.alignment.localalignmin,8)))
else
tg.setfirsttemp(align(maxpushedparasize,max(current_settings.alignment.localalignmin,8)));
end;
end;