[tree-ssa] Lowering of VLA's, part 2

Jason Merrill jason@redhat.com
Wed Aug 27 18:49:00 GMT 2003


On Wed, 27 Aug 2003 20:14:55 +0200, Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> wrote:

> Hello,
>
>> > 	* gimplify.c (struct tree_p_list): New type.
>> > 	(join_tree_p_list, add_tree_p_list, free_tree_p_list,
>> > 	build_stack_save_restore, prepend_to_exit_gotos): New functions.
>> 
>> Use a TRY_FINALLY_EXPR instead.
>
> unnecesarily creating new eh handling constructs (that we really do not
> manage somehow greatly) seems a bit like overkill to me.

Reimplementing the functionality of TRY_FINALLY_EXPR by hand seems
unmaintainable to me.  If we want the stack to be restored properly when we
exit a block with a throw, we need to use an EH construct.

Also, rth is actively working on code to lower EH constructs after
gimplification, so our handling of EH will improve soon.

Jason



More information about the Gcc-patches mailing list