This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Reorganize expansion of nested functions
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Feb 2004 15:21:16 -0800
- Subject: Re: [tree-ssa] Reorganize expansion of nested functions
- References: <20040201022553.GY30324@kam.mff.cuni.cz>
On Sun, Feb 01, 2004 at 03:25:53AM +0100, Jan Hubicka wrote:
> + /* PARAM is function parameter referenced by nested function, prepare to
> + produce correct code in that case. */
> + void
> + notice_parameter_referenced_by_nested_function (tree param ATTRIBUTE_UNUSED)
> + {
> + #ifdef NEED_SEPARATE_AP
> + get_arg_pointer_save_area (cfun);
> + #endif
> + }
Why is this needed? Indeed, I would expect basically all of this:
> ! examine_nested_functions_1 (tree * tp, int *walk_subtrees, void *data)
to be handled by rtl expansion of the parent function.
> expand_function_end ();
> +
> + expand_nested_functions ();
As far as I can see, moving expansion of nested functions here
from expand_used_vars is the only substantive change.
r~