From d4cf97a75583c9cc9b1e28078b5dc11618047275 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 20 Oct 2018 09:16:51 +0000 Subject: [PATCH] * wrong ifdef exposed by warning with -O3 fixed git-svn-id: trunk@39989 - --- compiler/ppcgen/hlcgppc.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/ppcgen/hlcgppc.pas b/compiler/ppcgen/hlcgppc.pas index 5bf7972985..4d747b3fcd 100644 --- a/compiler/ppcgen/hlcgppc.pas +++ b/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),[]); if tcgppcgen(cg).hasLargeOffset(href) then begin -{$ifdef cpu64} +{$ifdef cpu64bitaddr} if (longint(href.offset) <> href.offset) then { add support for offsets > 32 bit } internalerror(200510201); -{$endif cpu64} +{$endif cpu64bitaddr} 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)))); href.offset := smallint(href.offset and $ffff);