mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 20:50:32 +02:00
* x86: Bug fix where aoc_ForceNewIteration was
checked in the wrong pass.
This commit is contained in:
parent
19ad26afd8
commit
9432a550e1
@ -244,6 +244,21 @@ unit aoptcpu;
|
||||
else
|
||||
;
|
||||
end;
|
||||
{ If this flag is set, force another run of pass 1 even if p wasn't
|
||||
changed }
|
||||
if aoc_ForceNewIteration in OptsToCheck then
|
||||
begin
|
||||
Exclude(OptsToCheck, aoc_ForceNewIteration);
|
||||
|
||||
if not Result then
|
||||
begin
|
||||
if not (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -283,21 +298,6 @@ unit aoptcpu;
|
||||
else
|
||||
;
|
||||
end;
|
||||
{ If this flag is set, force another run of pass 1 even if p wasn't
|
||||
changed }
|
||||
if aoc_ForceNewIteration in OptsToCheck then
|
||||
begin
|
||||
Exclude(OptsToCheck, aoc_ForceNewIteration);
|
||||
|
||||
if not Result then
|
||||
begin
|
||||
if not (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
@ -166,7 +166,21 @@ uses
|
||||
else
|
||||
;
|
||||
end;
|
||||
{ If this flag is set, force another run of pass 1 even if p wasn't
|
||||
changed }
|
||||
if aoc_ForceNewIteration in OptsToCheck then
|
||||
begin
|
||||
Exclude(OptsToCheck, aoc_ForceNewIteration);
|
||||
|
||||
if not Result then
|
||||
begin
|
||||
if not (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -202,21 +216,6 @@ uses
|
||||
else
|
||||
;
|
||||
end;
|
||||
{ If this flag is set, force another run of pass 1 even if p wasn't
|
||||
changed }
|
||||
if aoc_ForceNewIteration in OptsToCheck then
|
||||
begin
|
||||
Exclude(OptsToCheck, aoc_ForceNewIteration);
|
||||
|
||||
if not Result then
|
||||
begin
|
||||
if not (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user