* changed get_scratch_reg so it actually uses the\n scratch_reg_array_pointer

This commit is contained in:
Jonas Maebe 1999-08-26 14:51:54 +00:00
parent bb974dc8aa
commit fc6b6505fd

View File

@ -231,10 +231,11 @@ unit cgobj;
if unusedscratchregisters=[] then
internalerror(68996);
for i:=1 to max_scratch_regs do
if scratch_regs[i] in unusedscratchregisters then
for i:=scratch_reg_array_pointer to (scratch_reg_array_pointer +
max_scratch_regs) do
if scratch_regs[(i mod max_scratch_regs)+1] in unusedscratchregisters then
begin
r:=scratch_regs[i];
r:=scratch_regs[(i mod max_scratch_regs)+1];
break;
end;
exclude(unusedscratchregisters,r);
@ -327,7 +328,6 @@ unit cgobj;
hr:=get_scratch_reg(list);
a_load_const_reg(list,size,a,hr);
a_load_reg_ref(list,size,hr,ref);
a_reg_dealloc(list,hr);
free_scratch_reg(list,hr);
end;
@ -1080,7 +1080,10 @@ unit cgobj;
end.
{
$Log$
Revision 1.23 1999-08-25 12:00:11 jonas
Revision 1.24 1999-08-26 14:51:54 jonas
* changed get_scratch_reg so it actually uses the\n scratch_reg_array_pointer
Revision 1.23 1999/08/25 12:00:11 jonas
* changed pai386, paippc and paiapha (same for tai*) to paicpu (taicpu)
Revision 1.22 1999/08/18 17:05:55 florian