Selaa lähdekoodia

* fixed R_TOC bugs introduced by new register allocator conversion

Jonas Maebe 22 vuotta sitten
vanhempi
commit
5893b9bb19
2 muutettua tiedostoa jossa 10 lisäystä ja 4 poistoa
  1. 5 2
      compiler/powerpc/cgcpu.pas
  2. 5 2
      compiler/powerpc/cpubase.pas

+ 5 - 2
compiler/powerpc/cgcpu.pas

@@ -2043,7 +2043,7 @@ const
                         tmpref.offset := ref.offset;
                         tmpref.symaddr := refs_full;
                         tmpref.base.enum:= R_INTREGISTER;
-                        tmpref.base.number:= NR_R0;
+                        tmpref.base.number:= NR_RTOC;
                         list.concat(taicpu.op_reg_ref(A_LWZ,tmpreg,tmpref));
 
                         reference_reset(tmpref);
@@ -2199,7 +2199,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.74  2003-03-13 22:57:45  olle
+  Revision 1.75  2003-03-19 14:26:26  jonas
+    * fixed R_TOC bugs introduced by new register allocator conversion
+
+  Revision 1.74  2003/03/13 22:57:45  olle
     * change in a_loadaddr_ref_reg
 
   Revision 1.73  2003/03/12 22:43:38  jonas

+ 5 - 2
compiler/powerpc/cpubase.pas

@@ -218,7 +218,7 @@ uses
       NR_R27 = $1C00; NR_R28 = $1D00; NR_R29 = $1E00;
       NR_R30 = $1F00; NR_R31 = $2000;
 
-      NR_RTOC = NR_R3;
+      NR_RTOC = NR_R2;
 
     {Super registers:}
       RS_R0 = $01; RS_R1 = $02; RS_R2 = $03;
@@ -876,7 +876,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.45  2003-03-11 21:46:24  jonas
+  Revision 1.46  2003-03-19 14:26:26  jonas
+    * fixed R_TOC bugs introduced by new register allocator conversion
+
+  Revision 1.45  2003/03/11 21:46:24  jonas
     * lots of new regallocator fixes, both in generic and ppc-specific code
       (ppc compiler still can't compile the linux system unit though)