From 2ce81b5177ddfd6cf05f2485d95d066d28df7180 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 10 Feb 2005 21:54:36 +0000 Subject: [PATCH] * data with inittables need to have a memory location assigned for incrref --- compiler/ncgld.pas | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compiler/ncgld.pas b/compiler/ncgld.pas index b0acc56c1f..7df1fa5dbc 100644 --- a/compiler/ncgld.pas +++ b/compiler/ncgld.pas @@ -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