mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 02:28:14 +02:00
* force records with LOC_CONSTANT into memory when they are subscripted
git-svn-id: trunk@26630 -
This commit is contained in:
parent
1d73f49330
commit
546f4a5d46
@ -423,7 +423,12 @@ implementation
|
||||
memory as well }
|
||||
((left.location.size in [OS_PAIR,OS_SPAIR]) and
|
||||
(vs.fieldoffset div sizeof(aword)<>(vs.fieldoffset+vs.getsize-1) div sizeof(aword))) or
|
||||
(location.loc in [LOC_MMREGISTER,LOC_FPUREGISTER]) then
|
||||
(location.loc in [LOC_MMREGISTER,LOC_FPUREGISTER,
|
||||
{ actually, we should be able to "subscript" a constant, but this would require some code
|
||||
which enables dumping and reading constants from a temporary memory buffer. This
|
||||
must be done a CPU dependent way, so it is not easy and probably not worth the effort (FK)
|
||||
}
|
||||
LOC_CONSTANT]) then
|
||||
hlcg.location_force_mem(current_asmdata.CurrAsmList,location,left.resultdef)
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user