mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-14 05:27:10 +02:00
* handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in
unaryminus code (a.o., fixes compiler crash with test/terecs6 on darwin/ppc32 under certain circumstances: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?action=3&run1id=74027&run2id=74101&testfileid=3838 ) git-svn-id: trunk@16650 -
This commit is contained in:
parent
a8da9e4bd1
commit
5175a5ee07
@ -576,6 +576,8 @@ end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if left.location.loc in [LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF] then
|
||||
location_force_reg(current_asmdata.CurrAsmList,left.location,left.location.size,true);
|
||||
location_copy(location,left.location);
|
||||
location.loc:=LOC_REGISTER;
|
||||
case left.location.loc of
|
||||
|
@ -316,6 +316,8 @@ var
|
||||
begin
|
||||
secondpass(left);
|
||||
begin
|
||||
if left.location.loc in [LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF] then
|
||||
location_force_reg(current_asmdata.CurrAsmList,left.location,left.location.size,true);
|
||||
location_copy(location, left.location);
|
||||
location.loc := LOC_REGISTER;
|
||||
case left.location.loc of
|
||||
|
Loading…
Reference in New Issue
Block a user