mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-06 11:38:25 +02:00
* data with inittables need to have a memory location assigned
for incrref
This commit is contained in:
parent
76a2dbb4a7
commit
2ce81b5177
@ -432,6 +432,7 @@ implementation
|
||||
if (right.resulttype.def.needs_inittable) and
|
||||
(right.nodetype<>stringconstn) then
|
||||
begin
|
||||
location_force_mem(exprasmlist,right.location);
|
||||
location_get_data_ref(exprasmlist,right.location,href,false);
|
||||
cg.g_incrrefcount(exprasmlist,right.resulttype.def,href);
|
||||
end;
|
||||
@ -481,6 +482,7 @@ implementation
|
||||
if (right.resulttype.def.needs_inittable) and
|
||||
(right.nodetype<>stringconstn) then
|
||||
begin
|
||||
location_force_mem(exprasmlist,right.location);
|
||||
location_get_data_ref(exprasmlist,right.location,href,false);
|
||||
cg.g_incrrefcount(exprasmlist,right.resulttype.def,href);
|
||||
end;
|
||||
@ -954,7 +956,11 @@ begin
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.136 2005-01-23 17:14:21 florian
|
||||
Revision 1.137 2005-02-10 21:54:36 peter
|
||||
* data with inittables need to have a memory location assigned
|
||||
for incrref
|
||||
|
||||
Revision 1.136 2005/01/23 17:14:21 florian
|
||||
+ optimized code generation on sparc
|
||||
+ some stuff for pic code on sparc added
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user