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] turn cfun->local_decls into a VEC


On Wed, Jun 30, 2010 at 22:09, Nathan Froyd <froydnj@codesourcery.com> wrote:

> gcc/
> Â Â Â Â* vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
> Â Â Â Â* function.h (struct_function): Change type of local_decls field
> Â Â Â Âto a VEC.
> Â Â Â Â(add_local_decl): New function.
> Â Â Â Â(FOR_EACH_LOCAL_DECL): New macro.
> Â Â Â Â* cfgexpand.c (init_vars_expansion): Adjust for new type of
> Â Â Â Âcfun->local_decls.
> Â Â Â Â(estimated_stack_frame_size): Likewise.
> Â Â Â Â(expand_used_vars): Likewise.
> Â Â Â Â* cgraphbuild.c (build_cgraph_edges): Likewise.
> Â Â Â Â* function.c (instantiate_decls_1): Likewise.
> Â Â Â Â* ipa-struct-reorg.c (build_data_structure): Likewise.
> Â Â Â Â* ipa-type-escape.c (analyze_function): Likewise.
> Â Â Â Â* lto-streamer-in.c (input_function): Likewise.
> Â Â Â Â* lto-streamer-out.c (output_function): Likewise.
> Â Â Â Â* tree-ssa-live.c (remove_unused_locals): Likewise.
> Â Â Â Â* tree.c (free_lang_data_in_decl): Likewise.
> Â Â Â Â(find_decls_types_in_node): Likewise.
> Â Â Â Â* omp-low.c (remove_exit_barrier): Likewise.
> Â Â Â Â(expand_omp_taskreg): Likewise.
> Â Â Â Â(list2chain): Rename to...
> Â Â Â Â(vec2chain): ...this. ÂAdjust.
> Â Â Â Â* cgraphunit.c (assemble_thunk): Call add_local_decl.
> Â Â Â Â* tree-cfg.c (replace_by_duplicate_decl): Likewise.
> Â Â Â Â* gimple-low.c (record_vars_into): Likewise.
> Â Â Â Â* tree-inline.c (remap_decls): Likewise.
> Â Â Â Â(declare_return_variable): Likewise.
> Â Â Â Â(declare_inline_vars): Likewise.
> Â Â Â Â(copy_forbidden): Adjust for new type of cfun->local_decls.
> Â Â Â Â(add_local_variables): New function.
> Â Â Â Â(expand_call_inline): Call it.
> Â Â Â Â(tree_function_versioning): Likewise.
>
> gcc/cp/
> Â Â Â Â* decl.c (cp_finish_decl): Call add_local_decl.
> Â Â Â Â* optimize.c (clone_body): Adjust for new type of cfun->local_decls.

OK if testing passes for all languages and lto enabled.  Please wait
until after the freeze to commit.


Diego.


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