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:
tom_at_work 2008-04-19 22:47:41 +00:00
parent 20737f0ac1
commit d84e8adc77

View File

@ -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);