Przeglądaj źródła

* wrong ifdef exposed by warning with -O3 fixed

git-svn-id: trunk@39989 -
florian 6 lat temu
rodzic
commit
d4cf97a755
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      compiler/ppcgen/hlcgppc.pas

+ 2 - 2
compiler/ppcgen/hlcgppc.pas

@@ -118,11 +118,11 @@ implementation
         reference_reset_base(href,voidpointertype,NR_R11,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,sizeof(pint),[]);
         reference_reset_base(href,voidpointertype,NR_R11,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,sizeof(pint),[]);
         if tcgppcgen(cg).hasLargeOffset(href) then
         if tcgppcgen(cg).hasLargeOffset(href) then
           begin
           begin
-{$ifdef cpu64}
+{$ifdef cpu64bitaddr}
             if (longint(href.offset) <> href.offset) then
             if (longint(href.offset) <> href.offset) then
               { add support for offsets > 32 bit }
               { add support for offsets > 32 bit }
               internalerror(200510201);
               internalerror(200510201);
-{$endif cpu64}
+{$endif cpu64bitaddr}
             list.concat(taicpu.op_reg_reg_const(A_ADDIS,NR_R11,NR_R11,
             list.concat(taicpu.op_reg_reg_const(A_ADDIS,NR_R11,NR_R11,
               smallint((href.offset shr 16)+ord(smallint(href.offset and $ffff) < 0))));
               smallint((href.offset shr 16)+ord(smallint(href.offset and $ffff) < 0))));
             href.offset := smallint(href.offset and $ffff);
             href.offset := smallint(href.offset and $ffff);