Browse Source

* compilation on i386 fixed

git-svn-id: trunk@43920 -
florian 5 years ago
parent
commit
5a1e6c2e91
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/x86/aoptx86.pas

+ 2 - 2
compiler/x86/aoptx86.pas

@@ -4068,9 +4068,9 @@ unit aoptx86;
                                   case typ of
                                     top_ref:
                                       begin
-                                        if (ref^.base <> NR_NO) and (ref^.base <> NR_RIP) then
+                                        if (ref^.base <> NR_NO) {$ifdef x86_64} and (ref^.base <> NR_RIP) {$endif x86_64} then
                                           AllocRegBetween(ref^.base, hp3, tai(p.Next), UsedRegs);
-                                        if (ref^.index <> NR_NO) and (ref^.index <> NR_RIP) then
+                                        if (ref^.index <> NR_NO) {$ifdef x86_64} and (ref^.index <> NR_RIP) {$endif x86_64} then
                                           AllocRegBetween(ref^.index, hp3, tai(p.Next), UsedRegs);
                                       end;
                                     top_reg: