Ver Fonte

* don't reserve never used space for parameter and function result location
info on the callnoside and callbothsides "sides"

git-svn-id: trunk@32225 -

Jonas Maebe há 9 anos atrás
pai
commit
745249295e
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      compiler/symdef.pas
  2. 1 1
      compiler/symsym.pas

+ 2 - 2
compiler/symdef.pas

@@ -580,7 +580,7 @@ interface
 {$ifdef m68k}
 {$ifdef m68k}
           exp_funcretloc : tregister;   { explicit funcretloc for AmigaOS }
           exp_funcretloc : tregister;   { explicit funcretloc for AmigaOS }
 {$endif}
 {$endif}
-          funcretloc : array[tcallercallee] of TCGPara;
+          funcretloc : array[callerside..calleeside] of TCGPara;
           has_paraloc_info : tcallercallee; { paraloc info is available }
           has_paraloc_info : tcallercallee; { paraloc info is available }
           { number of user visible parameters }
           { number of user visible parameters }
           maxparacount,
           maxparacount,
@@ -6121,7 +6121,7 @@ implementation
         tprocvardef(result).calleeargareasize:=calleeargareasize;
         tprocvardef(result).calleeargareasize:=calleeargareasize;
         tprocvardef(result).maxparacount:=maxparacount;
         tprocvardef(result).maxparacount:=maxparacount;
         tprocvardef(result).minparacount:=minparacount;
         tprocvardef(result).minparacount:=minparacount;
-        for i:=low(tcallercallee) to high(tcallercallee) do
+        for i:=low(funcretloc) to high(funcretloc) do
           tprocvardef(result).funcretloc[i]:=funcretloc[i].getcopy;
           tprocvardef(result).funcretloc[i]:=funcretloc[i].getcopy;
         tprocvardef(result).has_paraloc_info:=has_paraloc_info;
         tprocvardef(result).has_paraloc_info:=has_paraloc_info;
 {$ifdef m68k}
 {$ifdef m68k}

+ 1 - 1
compiler/symsym.pas

@@ -258,7 +258,7 @@ interface
       tlocalvarsymclass = class of tlocalvarsym;
       tlocalvarsymclass = class of tlocalvarsym;
 
 
       tparavarsym = class(tabstractnormalvarsym)
       tparavarsym = class(tabstractnormalvarsym)
-          paraloc       : array[tcallercallee] of TCGPara;
+          paraloc       : array[callerside..calleeside] of TCGPara;
           paranr        : word; { position of this parameter }
           paranr        : word; { position of this parameter }
           { in MacPas mode, "univ" parameters mean that type checking should
           { in MacPas mode, "univ" parameters mean that type checking should
             be disabled, except that the size of the passed parameter must
             be disabled, except that the size of the passed parameter must