浏览代码

* fixed compil problem when using ObjFpc mode (^ required).

mazen 22 年之前
父节点
当前提交
0bcacbde35
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. 9 6
      compiler/sparc/aasmcpu.pas

+ 9 - 6
compiler/sparc/aasmcpu.pas

@@ -222,17 +222,17 @@ implementation
           used for the delay slots }
           used for the delay slots }
         result:=(opcode=A_MOV) and
         result:=(opcode=A_MOV) and
                 (ops=2) and
                 (ops=2) and
-                (oper[0].typ=top_reg) and
-                (oper[1].typ=top_reg) and
-                (oper[0].reg=oper[1].reg);
+                (oper[0]^.typ=top_reg) and
+                (oper[1]^.typ=top_reg) and
+                (oper[0]^.reg=oper[1]^.reg);
       end;
       end;
 
 
 
 
     function taicpu.is_move:boolean;
     function taicpu.is_move:boolean;
       begin
       begin
         result:=(opcode=A_MOV) and
         result:=(opcode=A_MOV) and
-                (oper[0].typ=top_reg) and
-                (oper[1].typ=top_reg);
+                (oper[0]^.typ=top_reg) and
+                (oper[1]^.typ=top_reg);
       end;
       end;
 
 
 
 
@@ -297,7 +297,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.34  2003-10-01 20:34:49  peter
+  Revision 1.35  2003-10-24 07:00:17  mazen
+  * fixed compil problem when using ObjFpc mode (^ required).
+
+  Revision 1.34  2003/10/01 20:34:49  peter
     * procinfo unit contains tprocinfo
     * procinfo unit contains tprocinfo
     * cginfo renamed to cgbase
     * cginfo renamed to cgbase
     * moved cgmessage to verbose
     * moved cgmessage to verbose