mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 02:03:15 +02:00
further fix for tw10233 on powerpc(64) platforms:
* do not overwrite left.location.register in second_int_to_bool() but use temp register when converting input value to C style truth values (i.e. 0,-1). With -Or enabled this register will be reused not containing the correct value anymore. git-svn-id: trunk@10729 -
This commit is contained in:
parent
20737f0ac1
commit
d84e8adc77
@ -132,6 +132,7 @@ implementation
|
||||
end
|
||||
else
|
||||
begin
|
||||
hreg1:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
|
||||
{$ifndef cpu64bitalu}
|
||||
if left.location.size in [OS_64,OS_S64] then
|
||||
begin
|
||||
@ -140,7 +141,7 @@ implementation
|
||||
end
|
||||
else
|
||||
{$endif not cpu64bitalu}
|
||||
hreg1 := left.location.register;
|
||||
cg.a_load_reg_reg(current_asmdata.CurrAsmList,opsize,opsize,left.location.register,hreg1);
|
||||
end;
|
||||
hreg2 := cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user