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: [tree-ssa] Reorganize expansion of nested functions


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~


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