Преглед на файлове

* fix i386 building

git-svn-id: trunk@43369 -
florian преди 5 години
родител
ревизия
f9530437c2
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      compiler/x86/aoptx86.pas

+ 2 - 2
compiler/x86/aoptx86.pas

@@ -3188,8 +3188,8 @@ unit aoptx86;
             { allow references, but only pure symbols or got rel. addressing with RIP as based,
             { allow references, but only pure symbols or got rel. addressing with RIP as based,
               it is not expected that this can cause a seg. violation }
               it is not expected that this can cause a seg. violation }
             (MatchOpType(taicpu(p),top_ref,top_reg) and
             (MatchOpType(taicpu(p),top_ref,top_reg) and
-             (((taicpu(p).oper[0]^.ref^.base=NR_NO) and (taicpu(p).oper[0]^.ref^.refaddr=addr_no)) or
-              ((taicpu(p).oper[0]^.ref^.base=NR_RIP) and (taicpu(p).oper[0]^.ref^.refaddr=addr_pic))
+             (((taicpu(p).oper[0]^.ref^.base=NR_NO) and (taicpu(p).oper[0]^.ref^.refaddr=addr_no)){$ifdef x86_64} or
+              ((taicpu(p).oper[0]^.ref^.base=NR_RIP) and (taicpu(p).oper[0]^.ref^.refaddr=addr_pic)){$endif x86_64}
              ) and
              ) and
              (taicpu(p).oper[0]^.ref^.index=NR_NO) and
              (taicpu(p).oper[0]^.ref^.index=NR_NO) and
              (taicpu(p).oper[0]^.ref^.offset=0)
              (taicpu(p).oper[0]^.ref^.offset=0)