This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] FIx PR 23547, non unit-at-a-time and nested functions


On Tue, Aug 30, 2005 at 06:33:03PM -0400, Andrew Pinski wrote:
> 	* tree-nested.c (struct var_map_elt): Mark with GTY.
> 	(struct nesting_info): Mark with GTY.  Mark var_map's param is struct
> 	var_map_elt.
> 	(lookup_field_for_decl): Allocate new element in GC memory.
> 	(lookup_tramp_for_decl): Likewise.
> 	(convert_nl_goto_reference): Likewise
> 	(create_nesting_tree): Allocate info in GC memory. Likewise for 
> info->var_map.
> 	(free_nesting_tree): Free with ggc_free instead of free.
> 	(root): New static variable.
> 	(lower_nested_functions): Remove root as local variable.  And zero 
> 	out root at
> 	the end of the function.

Ok.

I'm not terribly happy about this, but it does seem to be the 
least invasive way to solve the problem.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]