Browse Source

Add more information to TMipsProcInfo class

git-svn-id: trunk@21671 -
pierre 13 years ago
parent
commit
aa8747f5c9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      compiler/mips/cpupi.pas

+ 7 - 1
compiler/mips/cpupi.pas

@@ -42,8 +42,12 @@ interface
       floatregssave : byte;
       needs_frame_pointer: boolean;
       register_used : tparasupregsused;
+      register_size : tparasupregsize;
+      register_name : tparasuprename;
       register_offset : tparasupregsoffset;
       computed_local_size : longint;
+      //intparareg,
+      //parasize : longint;
       constructor create(aparent:tprocinfo);override;
       function calc_stackframe_size:longint;override;
       procedure set_first_temp_offset;override;
@@ -68,6 +72,8 @@ implementation
         for i:=low(tparasupregs)  to high(tparasupregs) do
           begin
             register_used[i]:=false;
+            register_size[i]:=OS_NO;
+            register_name[i]:='invalid';
             register_offset[i]:=-1;
           end;
         floatregssave:=12; { f20-f31 }
@@ -108,7 +114,7 @@ implementation
             procdef.total_local_size:=result;
           end
         else if computed_local_size <> result then
-          Comment(V_Warning,'TMIPSProcInfo.calc_stackframe_size result changed');
+          Comment(V_Error,'TMIPSProcInfo.calc_stackframe_size result changed');
       end;
 
     function mips_extra_offset(procdef : tprocdef) : longint;