Browse Source

* renamed t<cpuname>procinfo to tcpuprocinfo for all targets, so we can
inherit from it for LLVM without a thousand ifdefs

git-svn-id: trunk@35141 -

Jonas Maebe 8 years ago
parent
commit
880d438704

+ 4 - 4
compiler/aarch64/cpupi.pas

@@ -30,7 +30,7 @@ interface
     psub;
     psub;
 
 
   type
   type
-    taarch64procinfo=class(tcgprocinfo)
+    tcpuprocinfo=class(tcgprocinfo)
       constructor create(aparent: tprocinfo); override;
       constructor create(aparent: tprocinfo); override;
       procedure set_first_temp_offset; override;
       procedure set_first_temp_offset; override;
     end;
     end;
@@ -41,7 +41,7 @@ implementation
     tgobj,
     tgobj,
     cpubase;
     cpubase;
 
 
-  constructor taarch64procinfo.create(aparent: tprocinfo);
+  constructor tcpuprocinfo.create(aparent: tprocinfo);
     begin
     begin
       inherited;
       inherited;
       { use the stack pointer as framepointer, because
       { use the stack pointer as framepointer, because
@@ -56,7 +56,7 @@ implementation
       framepointer:=NR_STACK_POINTER_REG;
       framepointer:=NR_STACK_POINTER_REG;
     end;
     end;
 
 
-  procedure taarch64procinfo.set_first_temp_offset;
+  procedure tcpuprocinfo.set_first_temp_offset;
     begin
     begin
      { leave room for allocated parameters }
      { leave room for allocated parameters }
      tg.setfirsttemp(align(maxpushedparasize,16));
      tg.setfirsttemp(align(maxpushedparasize,16));
@@ -64,5 +64,5 @@ implementation
 
 
 
 
 begin
 begin
-  cprocinfo:=taarch64procinfo;
+  cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 26 - 26
compiler/arm/cgcpu.pas

@@ -1898,7 +1898,7 @@ unit cgcpu;
 
 
         { call instruction does not put anything on the stack }
         { call instruction does not put anything on the stack }
         registerarea:=0;
         registerarea:=0;
-        tarmprocinfo(current_procinfo).stackpaddingreg:=High(TSuperRegister);
+        tcpuprocinfo(current_procinfo).stackpaddingreg:=High(TSuperRegister);
         lastfloatreg:=RS_NO;
         lastfloatreg:=RS_NO;
         if not(nostackframe) then
         if not(nostackframe) then
           begin
           begin
@@ -1971,7 +1971,7 @@ unit cgcpu;
                            begin
                            begin
                              regs:=regs+[r];
                              regs:=regs+[r];
                              inc(registerarea,4);
                              inc(registerarea,4);
-                             tarmprocinfo(current_procinfo).stackpaddingreg:=r;
+                             tcpuprocinfo(current_procinfo).stackpaddingreg:=r;
                              break;
                              break;
                            end;
                            end;
                      list.concat(setoppostfix(taicpu.op_ref_regset(A_STM,ref,R_INTREGISTER,R_SUBWHOLE,regs),PF_FD));
                      list.concat(setoppostfix(taicpu.op_ref_regset(A_STM,ref,R_INTREGISTER,R_SUBWHOLE,regs),PF_FD));
@@ -2041,10 +2041,10 @@ unit cgcpu;
                 localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
                 localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
                 if stack_parameters and (pi_estimatestacksize in current_procinfo.flags) then
                 if stack_parameters and (pi_estimatestacksize in current_procinfo.flags) then
                   begin
                   begin
-                    if localsize>tarmprocinfo(current_procinfo).stackframesize then
+                    if localsize>tcpuprocinfo(current_procinfo).stackframesize then
                       internalerror(2014030901)
                       internalerror(2014030901)
                     else
                     else
-                      localsize:=tarmprocinfo(current_procinfo).stackframesize-registerarea;
+                      localsize:=tcpuprocinfo(current_procinfo).stackframesize-registerarea;
                   end;
                   end;
                 if is_shifter_const(localsize,shift) then
                 if is_shifter_const(localsize,shift) then
                   begin
                   begin
@@ -2071,24 +2071,24 @@ unit cgcpu;
                (firstfloatreg<>RS_NO) then
                (firstfloatreg<>RS_NO) then
              begin
              begin
                reference_reset(ref,4,[]);
                reference_reset(ref,4,[]);
-               if (tg.direction*tarmprocinfo(current_procinfo).floatregstart>=1023) or
+               if (tg.direction*tcpuprocinfo(current_procinfo).floatregstart>=1023) or
                   (current_settings.fputype in [fpu_vfpv2,fpu_vfpv3,fpu_vfpv4,fpu_vfpv3_d16]) then
                   (current_settings.fputype in [fpu_vfpv2,fpu_vfpv3,fpu_vfpv4,fpu_vfpv3_d16]) then
                  begin
                  begin
-                   if not is_shifter_const(tarmprocinfo(current_procinfo).floatregstart,shift) then
+                   if not is_shifter_const(tcpuprocinfo(current_procinfo).floatregstart,shift) then
                      begin
                      begin
                        a_reg_alloc(list,NR_R12);
                        a_reg_alloc(list,NR_R12);
-                       a_load_const_reg(list,OS_ADDR,-tarmprocinfo(current_procinfo).floatregstart,NR_R12);
+                       a_load_const_reg(list,OS_ADDR,-tcpuprocinfo(current_procinfo).floatregstart,NR_R12);
                        list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                        list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                        a_reg_dealloc(list,NR_R12);
                        a_reg_dealloc(list,NR_R12);
                      end
                      end
                    else
                    else
-                     list.concat(taicpu.op_reg_reg_const(A_SUB,NR_R12,current_procinfo.framepointer,-tarmprocinfo(current_procinfo).floatregstart));
+                     list.concat(taicpu.op_reg_reg_const(A_SUB,NR_R12,current_procinfo.framepointer,-tcpuprocinfo(current_procinfo).floatregstart));
                    ref.base:=NR_R12;
                    ref.base:=NR_R12;
                  end
                  end
                else
                else
                  begin
                  begin
                    ref.base:=current_procinfo.framepointer;
                    ref.base:=current_procinfo.framepointer;
-                   ref.offset:=tarmprocinfo(current_procinfo).floatregstart;
+                   ref.offset:=tcpuprocinfo(current_procinfo).floatregstart;
                  end;
                  end;
 
 
                case current_settings.fputype of
                case current_settings.fputype of
@@ -2178,24 +2178,24 @@ unit cgcpu;
                (mmregs<>[]) then
                (mmregs<>[]) then
               begin
               begin
                 reference_reset(ref,4,[]);
                 reference_reset(ref,4,[]);
-                if (tg.direction*tarmprocinfo(current_procinfo).floatregstart>=1023) or
+                if (tg.direction*tcpuprocinfo(current_procinfo).floatregstart>=1023) or
                    (current_settings.fputype in [fpu_vfpv2,fpu_vfpv3,fpu_vfpv4,fpu_vfpv3_d16]) then
                    (current_settings.fputype in [fpu_vfpv2,fpu_vfpv3,fpu_vfpv4,fpu_vfpv3_d16]) then
                   begin
                   begin
-                    if not is_shifter_const(tarmprocinfo(current_procinfo).floatregstart,shift) then
+                    if not is_shifter_const(tcpuprocinfo(current_procinfo).floatregstart,shift) then
                       begin
                       begin
                         a_reg_alloc(list,NR_R12);
                         a_reg_alloc(list,NR_R12);
-                        a_load_const_reg(list,OS_ADDR,-tarmprocinfo(current_procinfo).floatregstart,NR_R12);
+                        a_load_const_reg(list,OS_ADDR,-tcpuprocinfo(current_procinfo).floatregstart,NR_R12);
                         list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                         list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                         a_reg_dealloc(list,NR_R12);
                         a_reg_dealloc(list,NR_R12);
                       end
                       end
                     else
                     else
-                      list.concat(taicpu.op_reg_reg_const(A_SUB,NR_R12,current_procinfo.framepointer,-tarmprocinfo(current_procinfo).floatregstart));
+                      list.concat(taicpu.op_reg_reg_const(A_SUB,NR_R12,current_procinfo.framepointer,-tcpuprocinfo(current_procinfo).floatregstart));
                     ref.base:=NR_R12;
                     ref.base:=NR_R12;
                   end
                   end
                 else
                 else
                   begin
                   begin
                     ref.base:=current_procinfo.framepointer;
                     ref.base:=current_procinfo.framepointer;
-                    ref.offset:=tarmprocinfo(current_procinfo).floatregstart;
+                    ref.offset:=tcpuprocinfo(current_procinfo).floatregstart;
                   end;
                   end;
                 case current_settings.fputype of
                 case current_settings.fputype of
                   fpu_fpa,
                   fpu_fpa,
@@ -2265,7 +2265,7 @@ unit cgcpu;
 
 
             { reapply the stack padding reg, in case there was one, see the complimentary
             { reapply the stack padding reg, in case there was one, see the complimentary
               comment in g_proc_entry() (KB) }
               comment in g_proc_entry() (KB) }
-            paddingreg:=tarmprocinfo(current_procinfo).stackpaddingreg;
+            paddingreg:=tcpuprocinfo(current_procinfo).stackpaddingreg;
             if paddingreg < RS_R4 then
             if paddingreg < RS_R4 then
               if paddingreg in regs then
               if paddingreg in regs then
                 internalerror(201306190)
                 internalerror(201306190)
@@ -2285,7 +2285,7 @@ unit cgcpu;
                      (po_assembler in current_procinfo.procdef.procoptions))) then
                      (po_assembler in current_procinfo.procdef.procoptions))) then
                   begin
                   begin
                     if pi_estimatestacksize in current_procinfo.flags then
                     if pi_estimatestacksize in current_procinfo.flags then
-                      LocalSize:=tarmprocinfo(current_procinfo).stackframesize-registerarea
+                      LocalSize:=tcpuprocinfo(current_procinfo).stackframesize-registerarea
                     else
                     else
                       localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
                       localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
 
 
@@ -3631,14 +3631,14 @@ unit cgcpu;
                   if yes, the previously estimated stacksize must be used }
                   if yes, the previously estimated stacksize must be used }
                 if stack_parameters then
                 if stack_parameters then
                   begin
                   begin
-                    if localsize>tarmprocinfo(current_procinfo).stackframesize then
+                    if localsize>tcpuprocinfo(current_procinfo).stackframesize then
                       begin
                       begin
                         writeln(localsize);
                         writeln(localsize);
-                        writeln(tarmprocinfo(current_procinfo).stackframesize);
+                        writeln(tcpuprocinfo(current_procinfo).stackframesize);
                         internalerror(2013040601);
                         internalerror(2013040601);
                       end
                       end
                     else
                     else
-                      localsize:=tarmprocinfo(current_procinfo).stackframesize-registerarea;
+                      localsize:=tcpuprocinfo(current_procinfo).stackframesize-registerarea;
                   end
                   end
                 else
                 else
                   localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
                   localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
@@ -3702,7 +3702,7 @@ unit cgcpu;
 
 
             LocalSize:=current_procinfo.calc_stackframe_size;
             LocalSize:=current_procinfo.calc_stackframe_size;
             if stack_parameters then
             if stack_parameters then
-              localsize:=tarmprocinfo(current_procinfo).stackframesize-registerarea
+              localsize:=tcpuprocinfo(current_procinfo).stackframesize-registerarea
             else
             else
               localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
               localsize:=align(localsize+stackmisalignment,current_settings.alignment.localalignmax)-stackmisalignment;
 
 
@@ -4851,16 +4851,16 @@ unit cgcpu;
             if firstfloatreg<>RS_NO then
             if firstfloatreg<>RS_NO then
               begin
               begin
                 reference_reset(ref,4,[]);
                 reference_reset(ref,4,[]);
-                if tg.direction*tarmprocinfo(current_procinfo).floatregstart>=1023 then
+                if tg.direction*tcpuprocinfo(current_procinfo).floatregstart>=1023 then
                   begin
                   begin
-                    a_load_const_reg(list,OS_ADDR,-tarmprocinfo(current_procinfo).floatregstart,NR_R12);
+                    a_load_const_reg(list,OS_ADDR,-tcpuprocinfo(current_procinfo).floatregstart,NR_R12);
                     list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                     list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                     ref.base:=NR_R12;
                     ref.base:=NR_R12;
                   end
                   end
                 else
                 else
                   begin
                   begin
                     ref.base:=current_procinfo.framepointer;
                     ref.base:=current_procinfo.framepointer;
-                    ref.offset:=tarmprocinfo(current_procinfo).floatregstart;
+                    ref.offset:=tcpuprocinfo(current_procinfo).floatregstart;
                   end;
                   end;
                 list.concat(taicpu.op_reg_const_ref(A_SFM,newreg(R_FPUREGISTER,firstfloatreg,R_SUBWHOLE),
                 list.concat(taicpu.op_reg_const_ref(A_SFM,newreg(R_FPUREGISTER,firstfloatreg,R_SUBWHOLE),
                   lastfloatreg-firstfloatreg+1,ref));
                   lastfloatreg-firstfloatreg+1,ref));
@@ -4901,16 +4901,16 @@ unit cgcpu;
             if firstfloatreg<>RS_NO then
             if firstfloatreg<>RS_NO then
               begin
               begin
                 reference_reset(ref,4,[]);
                 reference_reset(ref,4,[]);
-                if tg.direction*tarmprocinfo(current_procinfo).floatregstart>=1023 then
+                if tg.direction*tcpuprocinfo(current_procinfo).floatregstart>=1023 then
                   begin
                   begin
-                    a_load_const_reg(list,OS_ADDR,-tarmprocinfo(current_procinfo).floatregstart,NR_R12);
+                    a_load_const_reg(list,OS_ADDR,-tcpuprocinfo(current_procinfo).floatregstart,NR_R12);
                     list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                     list.concat(taicpu.op_reg_reg_reg(A_SUB,NR_R12,current_procinfo.framepointer,NR_R12));
                     ref.base:=NR_R12;
                     ref.base:=NR_R12;
                   end
                   end
                 else
                 else
                   begin
                   begin
                     ref.base:=current_procinfo.framepointer;
                     ref.base:=current_procinfo.framepointer;
-                    ref.offset:=tarmprocinfo(current_procinfo).floatregstart;
+                    ref.offset:=tcpuprocinfo(current_procinfo).floatregstart;
                   end;
                   end;
                 list.concat(taicpu.op_reg_const_ref(A_LFM,newreg(R_FPUREGISTER,firstfloatreg,R_SUBWHOLE),
                 list.concat(taicpu.op_reg_const_ref(A_LFM,newreg(R_FPUREGISTER,firstfloatreg,R_SUBWHOLE),
                   lastfloatreg-firstfloatreg+1,ref));
                   lastfloatreg-firstfloatreg+1,ref));

+ 1 - 1
compiler/arm/cpubase.pas

@@ -302,7 +302,7 @@ unit cpubase;
       { Stack pointer register }
       { Stack pointer register }
       NR_STACK_POINTER_REG = NR_R13;
       NR_STACK_POINTER_REG = NR_R13;
       RS_STACK_POINTER_REG = RS_R13;
       RS_STACK_POINTER_REG = RS_R13;
-      { Frame pointer register (initialized in tarmprocinfo.init_framepointer) }
+      { Frame pointer register (initialized in tcpuprocinfo.init_framepointer) }
       RS_FRAME_POINTER_REG: tsuperregister = RS_NO;
       RS_FRAME_POINTER_REG: tsuperregister = RS_NO;
       NR_FRAME_POINTER_REG: tregister = NR_NO;
       NR_FRAME_POINTER_REG: tregister = NR_NO;
       { Register for addressing absolute data in a position independant way,
       { Register for addressing absolute data in a position independant way,

+ 8 - 8
compiler/arm/cpupi.pas

@@ -33,7 +33,7 @@ unit cpupi;
        aasmdata;
        aasmdata;
 
 
     type
     type
-       tarmprocinfo = class(tcgprocinfo)
+       tcpuprocinfo = class(tcgprocinfo)
           { for arm thumb, we need to know the stackframe size before
           { for arm thumb, we need to know the stackframe size before
             starting procedure compilation, so this contains the stack frame size, the compiler
             starting procedure compilation, so this contains the stack frame size, the compiler
             should assume
             should assume
@@ -64,7 +64,7 @@ unit cpupi;
        defutil,
        defutil,
        aasmcpu;
        aasmcpu;
 
 
-    procedure tarmprocinfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       var
       var
         localsize : aint;
         localsize : aint;
         i : longint;
         i : longint;
@@ -140,7 +140,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    function tarmprocinfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       var
       var
          firstfloatreg,lastfloatreg,
          firstfloatreg,lastfloatreg,
          r : byte;
          r : byte;
@@ -240,7 +240,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure tarmprocinfo.init_framepointer;
+    procedure tcpuprocinfo.init_framepointer;
       begin
       begin
         if (target_info.system in systems_darwin) or GenerateThumbCode then
         if (target_info.system in systems_darwin) or GenerateThumbCode then
           begin
           begin
@@ -255,14 +255,14 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure tarmprocinfo.generate_parameter_info;
+    procedure tcpuprocinfo.generate_parameter_info;
       begin
       begin
        tcpuprocdef(procdef).total_stackframe_size:=stackframesize;
        tcpuprocdef(procdef).total_stackframe_size:=stackframesize;
        inherited generate_parameter_info;
        inherited generate_parameter_info;
       end;
       end;
 
 
 
 
-    procedure tarmprocinfo.allocate_got_register(list: TAsmList);
+    procedure tcpuprocinfo.allocate_got_register(list: TAsmList);
       begin
       begin
         { darwin doesn't use a got }
         { darwin doesn't use a got }
         if tf_pic_uses_got in target_info.flags then
         if tf_pic_uses_got in target_info.flags then
@@ -270,12 +270,12 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure tarmprocinfo.postprocess_code;
+    procedure tcpuprocinfo.postprocess_code;
       begin
       begin
         { because of the limited constant size of the arm, all data access is done pc relative }
         { because of the limited constant size of the arm, all data access is done pc relative }
         finalizearmcode(aktproccode,aktlocaldata);
         finalizearmcode(aktproccode,aktlocaldata);
       end;
       end;
 
 
 begin
 begin
-   cprocinfo:=tarmprocinfo;
+   cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 5 - 5
compiler/avr/cpupi.pas

@@ -32,7 +32,7 @@ unit cpupi;
        procinfo,cpuinfo,psub;
        procinfo,cpuinfo,psub;
 
 
     type
     type
-       tavrprocinfo = class(tcgprocinfo)
+       tcpuprocinfo = class(tcgprocinfo)
           // procedure handle_body_start;override;
           // procedure handle_body_start;override;
           // procedure after_pass1;override;
           // procedure after_pass1;override;
           procedure set_first_temp_offset;override;
           procedure set_first_temp_offset;override;
@@ -53,7 +53,7 @@ unit cpupi;
        cgobj,
        cgobj,
        aasmcpu;
        aasmcpu;
 
 
-    procedure tavrprocinfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       begin
       begin
         if tg.direction = -1 then
         if tg.direction = -1 then
           tg.setfirsttemp(-1)
           tg.setfirsttemp(-1)
@@ -64,7 +64,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    function tavrprocinfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       begin
       begin
         if tg.lasttemp=2 then
         if tg.lasttemp=2 then
           { correct that lasttemp is 2 in case of an empty stack due to the post-decrement pushing and an additional correction
           { correct that lasttemp is 2 in case of an empty stack due to the post-decrement pushing and an additional correction
@@ -76,7 +76,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure tavrprocinfo.postprocess_code;
+    procedure tcpuprocinfo.postprocess_code;
       begin
       begin
         { because of the limited branch distance of cond. branches, they must be replaced
         { because of the limited branch distance of cond. branches, they must be replaced
           sometimes by normal jmps and an inverse branch }
           sometimes by normal jmps and an inverse branch }
@@ -84,6 +84,6 @@ unit cpupi;
       end;
       end;
 
 
 begin
 begin
-   cprocinfo:=tavrprocinfo;
+   cprocinfo:=tcpuprocinfo;
 end.
 end.
 
 

+ 7 - 7
compiler/i386/cpupi.pas

@@ -31,7 +31,7 @@ unit cpupi;
        psub,procinfo,aasmdata;
        psub,procinfo,aasmdata;
 
 
     type
     type
-       ti386procinfo = class(tcgprocinfo)
+       tcpuprocinfo = class(tcgprocinfo)
          constructor create(aparent:tprocinfo);override;
          constructor create(aparent:tprocinfo);override;
          procedure set_first_temp_offset;override;
          procedure set_first_temp_offset;override;
          function calc_stackframe_size:longint;override;
          function calc_stackframe_size:longint;override;
@@ -50,14 +50,14 @@ unit cpupi;
       cgutils,
       cgutils,
       symconst;
       symconst;
 
 
-    constructor ti386procinfo.create(aparent:tprocinfo);
+    constructor tcpuprocinfo.create(aparent:tprocinfo);
       begin
       begin
         inherited create(aparent);
         inherited create(aparent);
         got:=NR_EBX;
         got:=NR_EBX;
       end;
       end;
 
 
 
 
-    procedure ti386procinfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       begin
       begin
         if paramanager.use_fixed_stack then
         if paramanager.use_fixed_stack then
           begin
           begin
@@ -72,7 +72,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    function ti386procinfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       begin
       begin
         { align to 4 bytes at least
         { align to 4 bytes at least
           otherwise all those subl $2,%esp are meaningless PM }
           otherwise all those subl $2,%esp are meaningless PM }
@@ -85,7 +85,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure ti386procinfo.generate_parameter_info;
+    procedure tcpuprocinfo.generate_parameter_info;
       begin
       begin
         inherited generate_parameter_info;
         inherited generate_parameter_info;
         { Para_stack_size is only used to determine how many bytes to remove }
         { Para_stack_size is only used to determine how many bytes to remove }
@@ -95,7 +95,7 @@ unit cpupi;
           para_stack_size := 0;
           para_stack_size := 0;
       end;
       end;
 
 
-    procedure ti386procinfo.allocate_got_register(list: tasmlist);
+    procedure tcpuprocinfo.allocate_got_register(list: tasmlist);
       begin
       begin
         if (cs_create_pic in current_settings.moduleswitches) then
         if (cs_create_pic in current_settings.moduleswitches) then
           begin
           begin
@@ -104,5 +104,5 @@ unit cpupi;
       end;
       end;
 
 
 begin
 begin
-   cprocinfo:=ti386procinfo;
+   cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 8 - 8
compiler/i8086/cpupi.pas

@@ -31,7 +31,7 @@ unit cpupi;
        psub,procinfo,aasmdata;
        psub,procinfo,aasmdata;
 
 
     type
     type
-       ti8086procinfo = class(tcgprocinfo)
+       tcpuprocinfo = class(tcgprocinfo)
        private
        private
          procedure insert_8087_fwaits(list : TAsmList);
          procedure insert_8087_fwaits(list : TAsmList);
        public
        public
@@ -54,14 +54,14 @@ unit cpupi;
       cgutils,
       cgutils,
       symconst;
       symconst;
 
 
-    constructor ti8086procinfo.create(aparent:tprocinfo);
+    constructor tcpuprocinfo.create(aparent:tprocinfo);
       begin
       begin
         inherited create(aparent);
         inherited create(aparent);
         got:=NR_EBX;
         got:=NR_EBX;
       end;
       end;
 
 
 
 
-    procedure ti8086procinfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       begin
       begin
         if paramanager.use_fixed_stack then
         if paramanager.use_fixed_stack then
           begin
           begin
@@ -76,7 +76,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    function ti8086procinfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       begin
       begin
         { ???:
         { ???:
           align to 4 bytes at least
           align to 4 bytes at least
@@ -90,7 +90,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure ti8086procinfo.generate_parameter_info;
+    procedure tcpuprocinfo.generate_parameter_info;
       begin
       begin
         inherited generate_parameter_info;
         inherited generate_parameter_info;
         { Para_stack_size is only used to determine how many bytes to remove }
         { Para_stack_size is only used to determine how many bytes to remove }
@@ -101,7 +101,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure ti8086procinfo.insert_8087_fwaits(list : TAsmList);
+    procedure tcpuprocinfo.insert_8087_fwaits(list : TAsmList);
       var
       var
         curtai: tai;
         curtai: tai;
       begin
       begin
@@ -117,7 +117,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure ti8086procinfo.postprocess_code;
+    procedure tcpuprocinfo.postprocess_code;
       begin
       begin
         { nickysn note: I don't know if the 187 requires FWAIT before
         { nickysn note: I don't know if the 187 requires FWAIT before
           every instruction like the 8087, so I'm including it just in case }
           every instruction like the 8087, so I'm including it just in case }
@@ -126,5 +126,5 @@ unit cpupi;
       end;
       end;
 
 
 begin
 begin
-   cprocinfo:=ti8086procinfo;
+   cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 4 - 4
compiler/jvm/cpupi.pas

@@ -32,9 +32,9 @@ interface
 
 
   type
   type
 
 
-    { TSparcProcInfo }
+    { tcpuprocinfo }
 
 
-    TJVMProcInfo=class(tcgprocinfo)
+    tcpuprocinfo=class(tcgprocinfo)
     public
     public
       procedure set_first_temp_offset;override;
       procedure set_first_temp_offset;override;
     end;
     end;
@@ -45,7 +45,7 @@ implementation
       systems,globals,
       systems,globals,
       tgobj,paramgr,symconst;
       tgobj,paramgr,symconst;
 
 
-    procedure TJVMProcInfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       begin
       begin
         {
         {
           Stackframe layout:
           Stackframe layout:
@@ -61,5 +61,5 @@ implementation
 
 
 
 
 begin
 begin
-  cprocinfo:=TJVMProcInfo;
+  cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 1 - 1
compiler/m68k/cpubase.pas

@@ -268,7 +268,7 @@ unit cpubase;
       NR_STACK_POINTER_REG = NR_SP;
       NR_STACK_POINTER_REG = NR_SP;
       RS_STACK_POINTER_REG = RS_SP;
       RS_STACK_POINTER_REG = RS_SP;
       {# Frame pointer register }
       {# Frame pointer register }
-{ Frame pointer register (initialized in tm68kprocinfo.init_framepointer) }
+{ Frame pointer register (initialized in tcpuprocinfo.init_framepointer) }
       RS_FRAME_POINTER_REG: tsuperregister = RS_NO;
       RS_FRAME_POINTER_REG: tsuperregister = RS_NO;
       NR_FRAME_POINTER_REG: tregister = NR_NO;
       NR_FRAME_POINTER_REG: tregister = NR_NO;
 
 

+ 4 - 4
compiler/m68k/cpupi.pas

@@ -31,7 +31,7 @@ unit cpupi;
       psub;
       psub;
 
 
     type
     type
-      tm68kprocinfo = class(tcgprocinfo)
+      tcpuprocinfo = class(tcgprocinfo)
         procedure init_framepointer;override;
         procedure init_framepointer;override;
       end;
       end;
 
 
@@ -42,9 +42,9 @@ unit cpupi;
       cpubase,
       cpubase,
       systems;
       systems;
 
 
-  { tm68kprocinfo }
+  { tcpuprocinfo }
 
 
-    procedure tm68kprocinfo.init_framepointer;
+    procedure tcpuprocinfo.init_framepointer;
       begin
       begin
         { ToDo : what about system_m68k_embedded? }
         { ToDo : what about system_m68k_embedded? }
         if target_info.system in [system_m68k_linux,system_m68k_netbsd,system_m68k_openbsd] then
         if target_info.system in [system_m68k_linux,system_m68k_netbsd,system_m68k_openbsd] then
@@ -60,5 +60,5 @@ unit cpupi;
       end;
       end;
 
 
 begin
 begin
-   cprocinfo:=tm68kprocinfo;
+   cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 14 - 14
compiler/mips/cgcpu.pas

@@ -372,9 +372,9 @@ begin
   { Restore GP if in PIC mode }
   { Restore GP if in PIC mode }
   if (cs_create_pic in current_settings.moduleswitches) then
   if (cs_create_pic in current_settings.moduleswitches) then
     begin
     begin
-      if TMIPSProcinfo(current_procinfo).save_gp_ref.offset=0 then
+      if tcpuprocinfo(current_procinfo).save_gp_ref.offset=0 then
         InternalError(2013071001);
         InternalError(2013071001);
-      list.concat(taicpu.op_reg_ref(A_LW,NR_GP,TMIPSProcinfo(current_procinfo).save_gp_ref));
+      list.concat(taicpu.op_reg_ref(A_LW,NR_GP,tcpuprocinfo(current_procinfo).save_gp_ref));
     end;
     end;
 end;
 end;
 
 
@@ -417,9 +417,9 @@ begin
   { Restore GP if in PIC mode }
   { Restore GP if in PIC mode }
   if (cs_create_pic in current_settings.moduleswitches) then
   if (cs_create_pic in current_settings.moduleswitches) then
     begin
     begin
-      if TMIPSProcinfo(current_procinfo).save_gp_ref.offset=0 then
+      if tcpuprocinfo(current_procinfo).save_gp_ref.offset=0 then
         InternalError(2013071002);
         InternalError(2013071002);
-      list.concat(taicpu.op_reg_ref(A_LW,NR_GP,TMIPSProcinfo(current_procinfo).save_gp_ref));
+      list.concat(taicpu.op_reg_ref(A_LW,NR_GP,tcpuprocinfo(current_procinfo).save_gp_ref));
     end;
     end;
 end;
 end;
 
 
@@ -1279,7 +1279,7 @@ begin
   href.base:=NR_STACK_POINTER_REG;
   href.base:=NR_STACK_POINTER_REG;
 
 
   fmask:=0;
   fmask:=0;
-  nextoffset:=TMIPSProcInfo(current_procinfo).floatregstart;
+  nextoffset:=tcpuprocinfo(current_procinfo).floatregstart;
   lastfpuoffset:=LocalSize;
   lastfpuoffset:=LocalSize;
   for reg := RS_F0 to RS_F31 do { to check: what if F30 is double? }
   for reg := RS_F0 to RS_F31 do { to check: what if F30 is double? }
     begin
     begin
@@ -1301,7 +1301,7 @@ begin
     end;
     end;
 
 
   mask:=0;
   mask:=0;
-  nextoffset:=TMIPSProcInfo(current_procinfo).intregstart;
+  nextoffset:=tcpuprocinfo(current_procinfo).intregstart;
   saveregs:=rg[R_INTREGISTER].used_in_proc-paramanager.get_volatile_registers_int(pocall_stdcall);
   saveregs:=rg[R_INTREGISTER].used_in_proc-paramanager.get_volatile_registers_int(pocall_stdcall);
   if (current_procinfo.flags*[pi_do_call,pi_is_assembler]<>[]) then
   if (current_procinfo.flags*[pi_do_call,pi_is_assembler]<>[]) then
     include(saveregs,RS_R31);
     include(saveregs,RS_R31);
@@ -1374,10 +1374,10 @@ begin
   if (cs_create_pic in current_settings.moduleswitches) and
   if (cs_create_pic in current_settings.moduleswitches) and
      (pi_needs_got in current_procinfo.flags) then
      (pi_needs_got in current_procinfo.flags) then
     begin
     begin
-      largeoffs:=(TMIPSProcinfo(current_procinfo).save_gp_ref.offset>simm16hi);
+      largeoffs:=(tcpuprocinfo(current_procinfo).save_gp_ref.offset>simm16hi);
       if largeoffs then
       if largeoffs then
         list.concat(Taicpu.op_none(A_P_SET_MACRO));
         list.concat(Taicpu.op_none(A_P_SET_MACRO));
-      list.concat(Taicpu.op_const(A_P_CPRESTORE,TMIPSProcinfo(current_procinfo).save_gp_ref.offset));
+      list.concat(Taicpu.op_const(A_P_CPRESTORE,tcpuprocinfo(current_procinfo).save_gp_ref.offset));
       if largeoffs then
       if largeoffs then
         list.concat(Taicpu.op_none(A_P_SET_NOMACRO));
         list.concat(Taicpu.op_none(A_P_SET_NOMACRO));
     end;
     end;
@@ -1385,7 +1385,7 @@ begin
   href.base:=NR_STACK_POINTER_REG;
   href.base:=NR_STACK_POINTER_REG;
 
 
   for i:=0 to MIPS_MAX_REGISTERS_USED_IN_CALL-1 do
   for i:=0 to MIPS_MAX_REGISTERS_USED_IN_CALL-1 do
-    if TMIPSProcInfo(current_procinfo).register_used[i] then
+    if tcpuprocinfo(current_procinfo).register_used[i] then
       begin
       begin
         reg:=parasupregs[i];
         reg:=parasupregs[i];
         href.offset:=i*sizeof(aint)+LocalSize;
         href.offset:=i*sizeof(aint)+LocalSize;
@@ -1417,12 +1417,12 @@ begin
      end
      end
    else
    else
      begin
      begin
-       if TMIPSProcinfo(current_procinfo).save_gp_ref.offset<>0 then
-         tg.ungettemp(list,TMIPSProcinfo(current_procinfo).save_gp_ref);
+       if tcpuprocinfo(current_procinfo).save_gp_ref.offset<>0 then
+         tg.ungettemp(list,tcpuprocinfo(current_procinfo).save_gp_ref);
        reference_reset(href,0,[]);
        reference_reset(href,0,[]);
        href.base:=NR_STACK_POINTER_REG;
        href.base:=NR_STACK_POINTER_REG;
 
 
-       nextoffset:=TMIPSProcInfo(current_procinfo).floatregstart;
+       nextoffset:=tcpuprocinfo(current_procinfo).floatregstart;
        for reg := RS_F0 to RS_F31 do
        for reg := RS_F0 to RS_F31 do
          begin
          begin
            if reg in (rg[R_FPUREGISTER].used_in_proc-paramanager.get_volatile_registers_fpu(pocall_stdcall)) then
            if reg in (rg[R_FPUREGISTER].used_in_proc-paramanager.get_volatile_registers_fpu(pocall_stdcall)) then
@@ -1433,7 +1433,7 @@ begin
              end;
              end;
          end;
          end;
 
 
-       nextoffset:=TMIPSProcInfo(current_procinfo).intregstart;
+       nextoffset:=tcpuprocinfo(current_procinfo).intregstart;
        saveregs:=rg[R_INTREGISTER].used_in_proc-paramanager.get_volatile_registers_int(pocall_stdcall);
        saveregs:=rg[R_INTREGISTER].used_in_proc-paramanager.get_volatile_registers_int(pocall_stdcall);
        if (current_procinfo.flags*[pi_do_call,pi_is_assembler]<>[]) then
        if (current_procinfo.flags*[pi_do_call,pi_is_assembler]<>[]) then
          include(saveregs,RS_R31);
          include(saveregs,RS_R31);
@@ -1520,7 +1520,7 @@ begin
   if len > high(longint) then
   if len > high(longint) then
     internalerror(2002072704);
     internalerror(2002072704);
   { A call (to FPC_MOVE) requires the outgoing parameter area to be properly
   { A call (to FPC_MOVE) requires the outgoing parameter area to be properly
-    allocated on stack. This can only be done before tmipsprocinfo.set_first_temp_offset,
+    allocated on stack. This can only be done before tcpuprocinfo.set_first_temp_offset,
     i.e. before secondpass. Other internal procedures request correct stack frame
     i.e. before secondpass. Other internal procedures request correct stack frame
     by setting pi_do_call during firstpass, but for this particular one it is impossible.
     by setting pi_do_call during firstpass, but for this particular one it is impossible.
     Therefore, if the current procedure is a leaf one, we have to leave it that way. }
     Therefore, if the current procedure is a leaf one, we have to leave it that way. }

+ 1 - 1
compiler/mips/cpupara.pas

@@ -434,7 +434,7 @@ implementation
                     if reg_and_stack then
                     if reg_and_stack then
                       begin
                       begin
                         for j:=intparareg to mips_nb_used_registers-1 do
                         for j:=intparareg to mips_nb_used_registers-1 do
-                          tmipsprocinfo(current_procinfo).register_used[j]:=true;
+                          tcpuprocinfo(current_procinfo).register_used[j]:=true;
                         { all registers used now }
                         { all registers used now }
                         intparareg:=mips_nb_used_registers;
                         intparareg:=mips_nb_used_registers;
                       end;
                       end;

+ 9 - 9
compiler/mips/cpupi.pas

@@ -33,9 +33,9 @@ interface
 
 
   type
   type
 
 
-    { TMIPSProcInfo }
+    { tcpuprocinfo }
 
 
-    TMIPSProcInfo=class(tcgprocinfo)
+    tcpuprocinfo=class(tcgprocinfo)
       intregstart,
       intregstart,
       floatregstart : aint;
       floatregstart : aint;
       intregssave,
       intregssave,
@@ -63,7 +63,7 @@ implementation
       cpubase,cgbase,cgobj,
       cpubase,cgbase,cgobj,
       tgobj,paramgr,symconst,symcpu,aasmcpu;
       tgobj,paramgr,symconst,symcpu,aasmcpu;
 
 
-    constructor TMIPSProcInfo.create(aparent: tprocinfo);
+    constructor tcpuprocinfo.create(aparent: tprocinfo);
       begin
       begin
         inherited create(aparent);
         inherited create(aparent);
         if (cs_generate_stackframes in current_settings.localswitches) or
         if (cs_generate_stackframes in current_settings.localswitches) or
@@ -85,7 +85,7 @@ implementation
       end;
       end;
 
 
 
 
-    procedure TMIPSProcInfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       begin
       begin
         { MIPS stack frame is always "optimized" }
         { MIPS stack frame is always "optimized" }
         framepointer:=NR_STACK_POINTER_REG;
         framepointer:=NR_STACK_POINTER_REG;
@@ -120,7 +120,7 @@ implementation
       end;
       end;
 
 
 
 
-    procedure TMIPSProcInfo.allocate_got_register(list:tasmlist);
+    procedure tcpuprocinfo.allocate_got_register(list:tasmlist);
       begin
       begin
         if (cs_create_pic in current_settings.moduleswitches) then
         if (cs_create_pic in current_settings.moduleswitches) then
           begin
           begin
@@ -133,7 +133,7 @@ implementation
       end;
       end;
 
 
 
 
-    function TMIPSProcInfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       begin
       begin
         result:=maxpushedparasize;
         result:=maxpushedparasize;
         floatregstart:=result;
         floatregstart:=result;
@@ -147,11 +147,11 @@ implementation
             tcpuprocdef(procdef).total_local_size:=result;
             tcpuprocdef(procdef).total_local_size:=result;
           end
           end
         else if computed_local_size <> result then
         else if computed_local_size <> result then
-          Comment(V_Error,'TMIPSProcInfo.calc_stackframe_size result changed');
+          Comment(V_Error,'tcpuprocinfo.calc_stackframe_size result changed');
       end;
       end;
 
 
 
 
-    procedure TMIPSProcInfo.postprocess_code;
+    procedure tcpuprocinfo.postprocess_code;
       begin
       begin
         fixup_jmps(aktproccode);
         fixup_jmps(aktproccode);
       end;
       end;
@@ -166,5 +166,5 @@ implementation
       end;
       end;
 
 
 begin
 begin
-  cprocinfo:=TMIPSProcInfo;
+  cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 10 - 10
compiler/powerpc/cgcpu.pas

@@ -826,12 +826,12 @@ const
                 end;
                 end;
 *)
 *)
 
 
-            firstregfpu := tppcprocinfo(current_procinfo).get_first_save_fpu_reg;
-            firstregint := tppcprocinfo(current_procinfo).get_first_save_int_reg;
+            firstregfpu := tcpuprocinfo(current_procinfo).get_first_save_fpu_reg;
+            firstregint := tcpuprocinfo(current_procinfo).get_first_save_int_reg;
             usesgpr := firstregint <> 32;
             usesgpr := firstregint <> 32;
             usesfpr := firstregfpu <> 32;
             usesfpr := firstregfpu <> 32;
 
 
-             if tppcprocinfo(current_procinfo).needs_frame_pointer then
+             if tcpuprocinfo(current_procinfo).needs_frame_pointer then
                list.concat(taicpu.op_reg_reg(A_MR,NR_OLD_STACK_POINTER_REG,NR_STACK_POINTER_REG));
                list.concat(taicpu.op_reg_reg(A_MR,NR_OLD_STACK_POINTER_REG,NR_STACK_POINTER_REG));
           end;
           end;
 
 
@@ -872,11 +872,11 @@ const
 
 
 {        done in ncgutil because it may only be released after the parameters }
 {        done in ncgutil because it may only be released after the parameters }
 {        have been moved to their final resting place                         }
 {        have been moved to their final resting place                         }
-{        if (tppcprocinfo(current_procinfo).needs_frame_pointer) then }
+{        if (tcpuprocinfo(current_procinfo).needs_frame_pointer) then }
 {          a_reg_dealloc(list,NR_R12); }
 {          a_reg_dealloc(list,NR_R12); }
 
 
         if (not nostackframe) and
         if (not nostackframe) and
-           tppcprocinfo(current_procinfo).needstackframe and
+           tcpuprocinfo(current_procinfo).needstackframe and
            (localsize <> 0) then
            (localsize <> 0) then
           begin
           begin
             if (localsize <= high(smallint)) then
             if (localsize <= high(smallint)) then
@@ -937,20 +937,20 @@ const
         usesgpr:=false;
         usesgpr:=false;
         if not (po_assembler in current_procinfo.procdef.procoptions) then
         if not (po_assembler in current_procinfo.procdef.procoptions) then
           begin
           begin
-            firstregfpu := tppcprocinfo(current_procinfo).get_first_save_fpu_reg;
-            firstregint := tppcprocinfo(current_procinfo).get_first_save_int_reg;
+            firstregfpu := tcpuprocinfo(current_procinfo).get_first_save_fpu_reg;
+            firstregint := tcpuprocinfo(current_procinfo).get_first_save_int_reg;
             usesgpr := firstregint <> 32;
             usesgpr := firstregint <> 32;
             usesfpr := firstregfpu <> 32;
             usesfpr := firstregfpu <> 32;
           end;
           end;
 
 
-        localsize:= tppcprocinfo(current_procinfo).calc_stackframe_size;
+        localsize:= tcpuprocinfo(current_procinfo).calc_stackframe_size;
 
 
         { adjust r1 }
         { adjust r1 }
         { (register allocator is no longer valid at this time and an add of 0   }
         { (register allocator is no longer valid at this time and an add of 0   }
         { is translated into a move, which is then registered with the register }
         { is translated into a move, which is then registered with the register }
         { allocator, causing a crash                                            }
         { allocator, causing a crash                                            }
         if (not nostackframe) and
         if (not nostackframe) and
-           tppcprocinfo(current_procinfo).needstackframe and
+           tcpuprocinfo(current_procinfo).needstackframe and
            (localsize <> 0) then
            (localsize <> 0) then
           a_op_const_reg(list,OP_ADD,OS_ADDR,localsize,NR_R1);
           a_op_const_reg(list,OP_ADD,OS_ADDR,localsize,NR_R1);
 
 
@@ -1279,7 +1279,7 @@ const
         localsize:= align(localsize + macosLinkageAreaSize + registerSaveAreaSize, 16);
         localsize:= align(localsize + macosLinkageAreaSize + registerSaveAreaSize, 16);
         inc(localsize,tg.lasttemp);
         inc(localsize,tg.lasttemp);
         localsize:=align(localsize,16);
         localsize:=align(localsize,16);
-        //tppcprocinfo(current_procinfo).localsize:=localsize;
+        //tcpuprocinfo(current_procinfo).localsize:=localsize;
 
 
         if (localsize <> 0) then
         if (localsize <> 0) then
           begin
           begin

+ 1 - 1
compiler/powerpc/cpupara.pas

@@ -584,7 +584,7 @@ unit cpupara;
                            { create_paraloc_info_intern might be also called when being outside of
                            { create_paraloc_info_intern might be also called when being outside of
                              code generation so current_procinfo might be not set }
                              code generation so current_procinfo might be not set }
                            if assigned(current_procinfo) then
                            if assigned(current_procinfo) then
-                             tppcprocinfo(current_procinfo).needs_frame_pointer := true;
+                             tcpuprocinfo(current_procinfo).needs_frame_pointer := true;
                          end;
                          end;
 
 
                        if not((target_info.system in systems_aix) and
                        if not((target_info.system in systems_aix) and

+ 9 - 9
compiler/powerpc/cpupi.pas

@@ -33,7 +33,7 @@ unit cpupi;
        procinfo,cpuinfo,psub;
        procinfo,cpuinfo,psub;
 
 
     type
     type
-       tppcprocinfo = class(tcgprocinfo)
+       tcpuprocinfo = class(tcgprocinfo)
           needstackframe: boolean;
           needstackframe: boolean;
 
 
           { offset where the frame pointer from the outer procedure is stored. }
           { offset where the frame pointer from the outer procedure is stored. }
@@ -66,7 +66,7 @@ unit cpupi;
        verbose,
        verbose,
        aasmcpu;
        aasmcpu;
 
 
-    constructor tppcprocinfo.create(aparent:tprocinfo);
+    constructor tcpuprocinfo.create(aparent:tprocinfo);
 
 
       begin
       begin
          inherited create(aparent);
          inherited create(aparent);
@@ -76,7 +76,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure tppcprocinfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       var
       var
          ofs : aword;
          ofs : aword;
       begin
       begin
@@ -106,7 +106,7 @@ unit cpupi;
 
 
 
 
 (*
 (*
-    procedure tppcprocinfo.after_pass1;
+    procedure tcpuprocinfo.after_pass1;
       begin
       begin
          if not(po_assembler in procdef.procoptions) then
          if not(po_assembler in procdef.procoptions) then
            begin
            begin
@@ -128,13 +128,13 @@ unit cpupi;
 *)
 *)
 
 
 
 
-    function tppcprocinfo.uses_stack_temps: boolean;
+    function tcpuprocinfo.uses_stack_temps: boolean;
       begin
       begin
         result := tg.firsttemp <> tg.lasttemp;
         result := tg.firsttemp <> tg.lasttemp;
       end;
       end;
 
 
 
 
-    function tppcprocinfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       var
       var
         low_nonvol_fpu_reg, regcounter: tsuperregister;
         low_nonvol_fpu_reg, regcounter: tsuperregister;
       begin
       begin
@@ -194,7 +194,7 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure tppcprocinfo.allocate_got_register(list: TAsmList);
+    procedure tcpuprocinfo.allocate_got_register(list: TAsmList);
       begin
       begin
         if (target_info.system = system_powerpc_darwin) and
         if (target_info.system = system_powerpc_darwin) and
            (cs_create_pic in current_settings.moduleswitches) then
            (cs_create_pic in current_settings.moduleswitches) then
@@ -204,13 +204,13 @@ unit cpupi;
       end;
       end;
 
 
 
 
-    procedure tppcprocinfo.postprocess_code;
+    procedure tcpuprocinfo.postprocess_code;
       begin
       begin
         fixup_jmps(aktproccode);
         fixup_jmps(aktproccode);
       end;
       end;
 
 
 
 
 begin
 begin
-   cprocinfo:=tppcprocinfo;
+   cprocinfo:=tcpuprocinfo;
 end.
 end.
 
 

+ 5 - 5
compiler/powerpc64/cgcpu.pas

@@ -1214,7 +1214,7 @@ begin
   calcFirstUsedGPR(firstreggpr, gprcount);
   calcFirstUsedGPR(firstreggpr, gprcount);
 
 
   { calculate real stack frame size }
   { calculate real stack frame size }
-  localsize := tppcprocinfo(current_procinfo).calc_stackframe_size(
+  localsize := tcpuprocinfo(current_procinfo).calc_stackframe_size(
     gprcount, fprcount);
     gprcount, fprcount);
 
 
   { determine whether we need to save the link register }
   { determine whether we need to save the link register }
@@ -1235,12 +1235,12 @@ begin
   save_standard_registers;
   save_standard_registers;
 
 
   { save old stack frame pointer }
   { save old stack frame pointer }
-  if (tppcprocinfo(current_procinfo).needs_frame_pointer) then
+  if (tcpuprocinfo(current_procinfo).needs_frame_pointer) then
     list.concat(taicpu.op_reg_reg(A_MR, NR_OLD_STACK_POINTER_REG, NR_STACK_POINTER_REG));
     list.concat(taicpu.op_reg_reg(A_MR, NR_OLD_STACK_POINTER_REG, NR_STACK_POINTER_REG));
 
 
   { create stack frame }
   { create stack frame }
   if (not nostackframe) and (localsize > 0) and
   if (not nostackframe) and (localsize > 0) and
-     tppcprocinfo(current_procinfo).needstackframe then begin
+     tcpuprocinfo(current_procinfo).needstackframe then begin
     if (localsize <= high(smallint)) then begin
     if (localsize <= high(smallint)) then begin
       reference_reset_base(href, NR_STACK_POINTER_REG, -localsize, 8, []);
       reference_reset_base(href, NR_STACK_POINTER_REG, -localsize, 8, []);
       a_load_store(list, A_STDU, NR_STACK_POINTER_REG, href);
       a_load_store(list, A_STDU, NR_STACK_POINTER_REG, href);
@@ -1375,13 +1375,13 @@ begin
      ([cs_lineinfo, cs_debuginfo] * current_settings.moduleswitches <> []));
      ([cs_lineinfo, cs_debuginfo] * current_settings.moduleswitches <> []));
 
 
   { calculate stack frame }
   { calculate stack frame }
-  localsize := tppcprocinfo(current_procinfo).calc_stackframe_size(
+  localsize := tcpuprocinfo(current_procinfo).calc_stackframe_size(
     gprcount, fprcount);
     gprcount, fprcount);
   { CR register not supported }
   { CR register not supported }
 
 
   { restore stack pointer }
   { restore stack pointer }
   if (not nostackframe) and (localsize > 0) and
   if (not nostackframe) and (localsize > 0) and
-    tppcprocinfo(current_procinfo).needstackframe then begin
+    tcpuprocinfo(current_procinfo).needstackframe then begin
     if (localsize <= high(smallint)) then begin
     if (localsize <= high(smallint)) then begin
       list.concat(taicpu.op_reg_reg_const(A_ADDI, NR_STACK_POINTER_REG, NR_STACK_POINTER_REG, localsize));
       list.concat(taicpu.op_reg_reg_const(A_ADDI, NR_STACK_POINTER_REG, NR_STACK_POINTER_REG, localsize));
     end else begin
     end else begin

+ 1 - 1
compiler/powerpc64/cpupara.pas

@@ -714,7 +714,7 @@ implemented
         { create_paraloc_info_intern might be also called when being outside of
         { create_paraloc_info_intern might be also called when being outside of
           code generation so current_procinfo might be not set }
           code generation so current_procinfo might be not set }
         if assigned(current_procinfo) then
         if assigned(current_procinfo) then
-          tppcprocinfo(current_procinfo).needs_frame_pointer := true;
+          tcpuprocinfo(current_procinfo).needs_frame_pointer := true;
       end;
       end;
       paraloc^.reference.offset := stack_offset;
       paraloc^.reference.offset := stack_offset;
 
 

+ 8 - 8
compiler/powerpc64/cpupi.pas

@@ -32,7 +32,7 @@ uses
   procinfo, cpuinfo, psub;
   procinfo, cpuinfo, psub;
 
 
 type
 type
-  tppcprocinfo = class(tcgprocinfo)
+  tcpuprocinfo = class(tcgprocinfo)
     needstackframe: boolean;
     needstackframe: boolean;
 
 
     { offset where the frame pointer from the outer procedure is stored. }
     { offset where the frame pointer from the outer procedure is stored. }
@@ -60,7 +60,7 @@ uses
   verbose,
   verbose,
   aasmcpu;
   aasmcpu;
 
 
-constructor tppcprocinfo.create(aparent: tprocinfo);
+constructor tcpuprocinfo.create(aparent: tprocinfo);
 
 
 begin
 begin
   inherited create(aparent);
   inherited create(aparent);
@@ -68,7 +68,7 @@ begin
   needs_frame_pointer := false;
   needs_frame_pointer := false;
 end;
 end;
 
 
-procedure tppcprocinfo.set_first_temp_offset;
+procedure tcpuprocinfo.set_first_temp_offset;
 var
 var
   ofs,
   ofs,
   lasize,
   lasize,
@@ -107,12 +107,12 @@ begin
   end;
   end;
 end;
 end;
 
 
-function tppcprocinfo.calc_stackframe_size: longint;
+function tcpuprocinfo.calc_stackframe_size: longint;
 begin
 begin
   result := calc_stackframe_size(18, 18);
   result := calc_stackframe_size(18, 18);
 end;
 end;
 
 
-function tppcprocinfo.calc_stackframe_size(numgpr, numfpr : longint) : longint;
+function tcpuprocinfo.calc_stackframe_size(numgpr, numfpr : longint) : longint;
 begin
 begin
   { more or less copied from cgcpu.pas/g_stackframe_entry }
   { more or less copied from cgcpu.pas/g_stackframe_entry }
   if not (po_assembler in procdef.procoptions) then begin
   if not (po_assembler in procdef.procoptions) then begin
@@ -133,7 +133,7 @@ begin
 end;
 end;
 
 
 
 
-procedure tppcprocinfo.allocate_got_register(list: TAsmList);
+procedure tcpuprocinfo.allocate_got_register(list: TAsmList);
   begin
   begin
     if (target_info.system = system_powerpc64_darwin) and
     if (target_info.system = system_powerpc64_darwin) and
        (cs_create_pic in current_settings.moduleswitches) then
        (cs_create_pic in current_settings.moduleswitches) then
@@ -143,13 +143,13 @@ procedure tppcprocinfo.allocate_got_register(list: TAsmList);
   end;
   end;
 
 
 
 
-procedure tppcprocinfo.postprocess_code;
+procedure tcpuprocinfo.postprocess_code;
   begin
   begin
     fixup_jmps(aktproccode);
     fixup_jmps(aktproccode);
   end;
   end;
 
 
 
 
 begin
 begin
-  cprocinfo := tppcprocinfo;
+  cprocinfo := tcpuprocinfo;
 end.
 end.
 
 

+ 2 - 2
compiler/ppcgen/hlcgppc.pas

@@ -248,11 +248,11 @@ implementation
       { get the register that contains the stack pointer before the procedure
       { get the register that contains the stack pointer before the procedure
         entry, which is used to access the parameters in their original
         entry, which is used to access the parameters in their original
         callee-side location }
         callee-side location }
-      if (tppcprocinfo(current_procinfo).needs_frame_pointer) then
+      if (tcpuprocinfo(current_procinfo).needs_frame_pointer) then
         getcpuregister(list,NR_OLD_STACK_POINTER_REG);
         getcpuregister(list,NR_OLD_STACK_POINTER_REG);
       inherited;
       inherited;
       { free it again }
       { free it again }
-      if (tppcprocinfo(current_procinfo).needs_frame_pointer) then
+      if (tcpuprocinfo(current_procinfo).needs_frame_pointer) then
         ungetcpuregister(list,NR_OLD_STACK_POINTER_REG);
         ungetcpuregister(list,NR_OLD_STACK_POINTER_REG);
     end;
     end;
 
 

+ 4 - 4
compiler/sparc/cpupi.pas

@@ -31,7 +31,7 @@ interface
     psub;
     psub;
 
 
   type
   type
-    TSparcProcInfo=class(tcgprocinfo)
+    tcpuprocinfo=class(tcgprocinfo)
     public
     public
       constructor create(aparent:tprocinfo);override;
       constructor create(aparent:tprocinfo);override;
       function calc_stackframe_size:longint;override;
       function calc_stackframe_size:longint;override;
@@ -44,7 +44,7 @@ implementation
       cpubase,cgbase,
       cpubase,cgbase,
       tgobj,paramgr,symconst;
       tgobj,paramgr,symconst;
 
 
-    constructor tsparcprocinfo.create(aparent:tprocinfo);
+    constructor tcpuprocinfo.create(aparent:tprocinfo);
       begin
       begin
         inherited create(aparent);
         inherited create(aparent);
         maxpushedparasize:=0;
         maxpushedparasize:=0;
@@ -52,7 +52,7 @@ implementation
       end;
       end;
 
 
 
 
-    function TSparcProcInfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       begin
       begin
         {
         {
           Stackframe layout:
           Stackframe layout:
@@ -77,5 +77,5 @@ implementation
 
 
 
 
 begin
 begin
-  cprocinfo:=TSparcProcInfo;
+  cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 1 - 1
compiler/x86_64/cgcpu.pas

@@ -411,7 +411,7 @@ unit cgcpu;
         list.concat(Taicpu.Op_none(A_RET,S_NO));
         list.concat(Taicpu.Op_none(A_RET,S_NO));
         if (pi_has_unwind_info in current_procinfo.flags) then
         if (pi_has_unwind_info in current_procinfo.flags) then
           begin
           begin
-            tx86_64procinfo(current_procinfo).dump_scopes(list);
+            tcpuprocinfo(current_procinfo).dump_scopes(list);
             list.concat(cai_seh_directive.create(ash_endproc));
             list.concat(cai_seh_directive.create(ash_endproc));
           end;
           end;
       end;
       end;

+ 9 - 9
compiler/x86_64/cpupi.pas

@@ -31,7 +31,7 @@ interface
        psub,procinfo,aasmbase,aasmdata;
        psub,procinfo,aasmbase,aasmdata;
 
 
     type
     type
-       tx86_64procinfo = class(tcgprocinfo)
+       tcpuprocinfo = class(tcgprocinfo)
        private
        private
          scopes: TAsmList;
          scopes: TAsmList;
          scopecount: longint;
          scopecount: longint;
@@ -63,7 +63,7 @@ implementation
       SCOPE_CATCHALL=1;
       SCOPE_CATCHALL=1;
       SCOPE_IMPLICIT=2;
       SCOPE_IMPLICIT=2;
 
 
-    procedure tx86_64procinfo.set_first_temp_offset;
+    procedure tcpuprocinfo.set_first_temp_offset;
       begin
       begin
         if target_info.system=system_x86_64_win64 then
         if target_info.system=system_x86_64_win64 then
           begin
           begin
@@ -83,7 +83,7 @@ implementation
       end;
       end;
 
 
 
 
-    procedure tx86_64procinfo.generate_parameter_info;
+    procedure tcpuprocinfo.generate_parameter_info;
       begin
       begin
         inherited generate_parameter_info;
         inherited generate_parameter_info;
         if target_info.system=system_x86_64_win64 then
         if target_info.system=system_x86_64_win64 then
@@ -91,7 +91,7 @@ implementation
       end;
       end;
 
 
 
 
-    function tx86_64procinfo.calc_stackframe_size:longint;
+    function tcpuprocinfo.calc_stackframe_size:longint;
       begin
       begin
         maxpushedparasize:=align(maxpushedparasize,max(current_settings.alignment.localalignmin,16));
         maxpushedparasize:=align(maxpushedparasize,max(current_settings.alignment.localalignmin,16));
         { Note 1: when tg.direction>0, tg.lasttemp is already offset by maxpushedparasize
         { Note 1: when tg.direction>0, tg.lasttemp is already offset by maxpushedparasize
@@ -105,7 +105,7 @@ implementation
           result:=Align(tg.direction*tg.lasttemp+maxpushedparasize,8);
           result:=Align(tg.direction*tg.lasttemp+maxpushedparasize,8);
       end;
       end;
 
 
-    procedure tx86_64procinfo.add_finally_scope(startlabel,endlabel,handler:TAsmSymbol;implicit:Boolean);
+    procedure tcpuprocinfo.add_finally_scope(startlabel,endlabel,handler:TAsmSymbol;implicit:Boolean);
       begin
       begin
         unwindflags:=unwindflags or 2;
         unwindflags:=unwindflags or 2;
         if implicit then  { also needs catch functionality }
         if implicit then  { also needs catch functionality }
@@ -123,7 +123,7 @@ implementation
         scopes.concat(tai_const.create_rva_sym(handler));
         scopes.concat(tai_const.create_rva_sym(handler));
       end;
       end;
 
 
-    procedure tx86_64procinfo.add_except_scope(trylabel,exceptlabel,endlabel,filter:TAsmSymbol);
+    procedure tcpuprocinfo.add_except_scope(trylabel,exceptlabel,endlabel,filter:TAsmSymbol);
       begin
       begin
         unwindflags:=unwindflags or 3;
         unwindflags:=unwindflags or 3;
         inc(scopecount);
         inc(scopecount);
@@ -139,7 +139,7 @@ implementation
         scopes.concat(tai_const.create_rva_sym(endlabel));
         scopes.concat(tai_const.create_rva_sym(endlabel));
       end;
       end;
 
 
-    procedure tx86_64procinfo.dump_scopes(list: TAsmList);
+    procedure tcpuprocinfo.dump_scopes(list: TAsmList);
       var
       var
         hdir: tai_seh_directive;
         hdir: tai_seh_directive;
       begin
       begin
@@ -156,12 +156,12 @@ implementation
         new_section(list,sec_code,lower(procdef.mangledname),0);
         new_section(list,sec_code,lower(procdef.mangledname),0);
       end;
       end;
 
 
-    destructor tx86_64procinfo.destroy;
+    destructor tcpuprocinfo.destroy;
       begin
       begin
         scopes.free;
         scopes.free;
         inherited destroy;
         inherited destroy;
       end;
       end;
 
 
 begin
 begin
-   cprocinfo:=tx86_64procinfo;
+   cprocinfo:=tcpuprocinfo;
 end.
 end.

+ 2 - 2
compiler/x86_64/nx64flw.pas

@@ -341,7 +341,7 @@ procedure tx64tryfinallynode.pass_generate_code;
     cg.a_label(current_asmdata.CurrAsmList,endfinallylabel);
     cg.a_label(current_asmdata.CurrAsmList,endfinallylabel);
 
 
     { generate the scope record in .xdata }
     { generate the scope record in .xdata }
-    tx86_64procinfo(current_procinfo).add_finally_scope(trylabel,endtrylabel,
+    tcpuprocinfo(current_procinfo).add_finally_scope(trylabel,endtrylabel,
       current_asmdata.RefAsmSymbol(finalizepi.procdef.mangledname,AT_FUNCTION),catch_frame);
       current_asmdata.RefAsmSymbol(finalizepi.procdef.mangledname,AT_FUNCTION),catch_frame);
 
 
     if implicitframe then
     if implicitframe then
@@ -515,7 +515,7 @@ procedure tx64tryexceptnode.pass_generate_code;
 
 
     emit_nop;
     emit_nop;
     cg.a_label(current_asmdata.CurrAsmList,endexceptlabel);
     cg.a_label(current_asmdata.CurrAsmList,endexceptlabel);
-    tx86_64procinfo(current_procinfo).add_except_scope(trylabel,exceptlabel,endexceptlabel,filterlabel);
+    tcpuprocinfo(current_procinfo).add_except_scope(trylabel,exceptlabel,endexceptlabel,filterlabel);
 
 
 errorexit:
 errorexit:
     { restore all saved labels }
     { restore all saved labels }