diff options
author | Jan Hubicka <jh@suse.cz> | 2008-04-18 07:26:12 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-04-18 05:26:12 +0000 |
commit | cb91fab00f7d609859c5648466848cc00dd83c69 (patch) | |
tree | ff651786f6b6c26df6f5b099b6f4c00550e248dd /gcc/tree-inline.c | |
parent | 799cff46ec8fe37c60605f22d8a9d6a39dcdb364 (diff) | |
download | gcc-cb91fab00f7d609859c5648466848cc00dd83c69.zip gcc-cb91fab00f7d609859c5648466848cc00dd83c69.tar.gz gcc-cb91fab00f7d609859c5648466848cc00dd83c69.tar.bz2 |
except.c (dw2_size_of_call_site_table, [...]): Use vector API for call_site_record.
* except.c (dw2_size_of_call_site_table,
sjlj_size_of_call_site_table): Use vector API for call_site_record.
* cgraphbuild.c (build_cgraph_edges): Update.
* tree-pass.h: Update comment.
* final.c (leaf_function_p): Update.
(leaf_renumber_regs): Update.
(rest_of_clean_state): Update.
* omp-low.c (expand_omp_parallel): Update.
* ipa-reference.c (analyze_function): Update.
* reorg.c (find_end_label): Update.
(optimize_skip): Update.
(fill_simple_delay_slots): Update.
(fill_simple_delay_slots): Update.
(make_return_insns): Update.
(dbr_schedule): Update.
* gimple-low.c (record_vars_into): Update.
* cfgbuild.c (make_edges): Update.
* function.c (assign_stack_local): Update.
(assign_parm_adjust_stack_rtl): Update.
(locate_and_pad_parm): Update.
(allocate_struct_function): Do not initialize stack_alignment_needed
and preferred_stack_boundary here.
(stack_protect_prologue): Update.
(stack_protect_epilogue): Update.
(expand_function_start): Initialize stack_alignment_needed,
preferred_stack_boundary and max_jumptable_ents.
(expand_function_end): Update.
(free_after_compilation): Do not NULLify epilogue_delay_list.
* function.h (struct rtl_data): Add stack_protect_guard,
stack_alignment_needed,
preferred_stack_boundary, epilogue_delay_list.
(struct function): Remove value_histograms, stack_alignment_needed,
preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
last_label_uid,
unexpanded_var_list, stack_protect_guard.
(current_function_epilogue_delay_list): Remove.
* ipa-type-escape.c (analyze_function): Update.
* gimplify.c (pop_gimplify_context): Update comment.
* calls.c (expand_call): Update.
(emit_library_call_value_1): Update.
* except.c (set_nothrow_function_flags): Update.
* cfgexpand.c (get_decl_align_unit): Update.
(create_stack_guard): Update.
(estimated_stack_frame_size): Update.
(expand_used_vars): Update.
(tree_expand_cfg): Free histogram earliers, init expansion variables.
* explow.c (allocate_dynamic_stack_space): Update.
* tree-ssa-live.c (remove_unused_locals): Update.
* varasm.c (mark_constant_pool): Update.
* tree-inline.c (remap_decls): Update.
(initialize_cfun): Update.
(declare_return_variable): Update.
(inline_forbidden_p): Update.
(expand_call_inline): Update.
(declare_inline_vars): Update.
(tree_function_versioning): Update.
* tree-flow.h (value_histograms): New.
(VALUE_HISTOGRAMS): New macro.
* basic-block.h (control_flow_graph): Add max_jumptable_ents,
last_label_uid.
* tree-cfg.c (set_bb_for_stmt): Update.
(replace_by_duplicate_decl): Update.
(move_block_to_fn): Update.
(new_label_mapper): Update.
(dump_function_to_file): Update.
* ipa-struct-reorg.c (build_data_structure): Update.
* cfgrtl.c (print_rtl_with_bb): Update.
* reload1.c (reload): Update.
(reload): Update.
* config/i386/i386.c (setup_incoming_varargs_64,
ix86_compute_frame_layout): Update.
* config/arc/arc.c (arc_output_function_epilogue): Update.
From-SVN: r134425
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 6373d5e..6658199 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -442,14 +442,14 @@ remap_decls (tree decls, copy_body_data *id) { tree new_var; - /* We can not chain the local static declarations into the unexpanded_var_list + /* We can not chain the local static declarations into the local_decls as we can't duplicate them or break one decl rule. Go ahead and link - them into unexpanded_var_list. */ + them into local_decls. */ if (!auto_var_in_fn_p (old_var, id->src_fn) && !DECL_EXTERNAL (old_var)) { - cfun->unexpanded_var_list = tree_cons (NULL_TREE, old_var, - cfun->unexpanded_var_list); + cfun->local_decls = tree_cons (NULL_TREE, old_var, + cfun->local_decls); continue; } @@ -1277,7 +1277,7 @@ initialize_cfun (tree new_fndecl, tree callee_fndecl, gcov_type count, *new_cfun = *DECL_STRUCT_FUNCTION (callee_fndecl); new_cfun->funcdef_no = get_next_funcdef_no (); VALUE_HISTOGRAMS (new_cfun) = NULL; - new_cfun->unexpanded_var_list = NULL; + new_cfun->local_decls = NULL; new_cfun->cfg = NULL; new_cfun->decl = new_fndecl /*= copy_node (callee_fndecl)*/; DECL_STRUCT_FUNCTION (new_fndecl) = new_cfun; @@ -1811,9 +1811,9 @@ declare_return_variable (copy_body_data *id, tree return_slot, tree modify_dest, } DECL_SEEN_IN_BIND_EXPR_P (var) = 1; - DECL_STRUCT_FUNCTION (caller)->unexpanded_var_list + DECL_STRUCT_FUNCTION (caller)->local_decls = tree_cons (NULL_TREE, var, - DECL_STRUCT_FUNCTION (caller)->unexpanded_var_list); + DECL_STRUCT_FUNCTION (caller)->local_decls); /* Do not have the rest of GCC warn about this variable as it should not be visible to the user. */ @@ -2040,7 +2040,7 @@ inline_forbidden_p (tree fndecl) goto egress; } - for (step = fun->unexpanded_var_list; step; step = TREE_CHAIN (step)) + for (step = fun->local_decls; step; step = TREE_CHAIN (step)) { tree decl = TREE_VALUE (step); if (TREE_CODE (decl) == VAR_DECL @@ -2831,16 +2831,16 @@ expand_call_inline (basic_block bb, tree stmt, tree *tp, void *data) copy_body (id, bb->count, bb->frequency, bb, return_block); /* Add local vars in this inlined callee to caller. */ - t_step = id->src_cfun->unexpanded_var_list; + t_step = id->src_cfun->local_decls; for (; t_step; t_step = TREE_CHAIN (t_step)) { var = TREE_VALUE (t_step); if (TREE_STATIC (var) && !TREE_ASM_WRITTEN (var)) - cfun->unexpanded_var_list = tree_cons (NULL_TREE, var, - cfun->unexpanded_var_list); + cfun->local_decls = tree_cons (NULL_TREE, var, + cfun->local_decls); else - cfun->unexpanded_var_list = tree_cons (NULL_TREE, remap_decl (var, id), - cfun->unexpanded_var_list); + cfun->local_decls = tree_cons (NULL_TREE, remap_decl (var, id), + cfun->local_decls); } /* Clean up. */ @@ -3340,9 +3340,7 @@ declare_inline_vars (tree block, tree vars) { DECL_SEEN_IN_BIND_EXPR_P (t) = 1; gcc_assert (!TREE_STATIC (t) && !TREE_ASM_WRITTEN (t)); - cfun->unexpanded_var_list = - tree_cons (NULL_TREE, t, - cfun->unexpanded_var_list); + cfun->local_decls = tree_cons (NULL_TREE, t, cfun->local_decls); } if (block) @@ -3615,19 +3613,18 @@ tree_function_versioning (tree old_decl, tree new_decl, varray_type tree_map, /* Renumber the lexical scoping (non-code) blocks consecutively. */ number_blocks (id.dst_fn); - if (DECL_STRUCT_FUNCTION (old_decl)->unexpanded_var_list != NULL_TREE) + if (DECL_STRUCT_FUNCTION (old_decl)->local_decls != NULL_TREE) /* Add local vars. */ - for (t_step = DECL_STRUCT_FUNCTION (old_decl)->unexpanded_var_list; + for (t_step = DECL_STRUCT_FUNCTION (old_decl)->local_decls; t_step; t_step = TREE_CHAIN (t_step)) { tree var = TREE_VALUE (t_step); if (TREE_STATIC (var) && !TREE_ASM_WRITTEN (var)) - cfun->unexpanded_var_list = tree_cons (NULL_TREE, var, - cfun->unexpanded_var_list); + cfun->local_decls = tree_cons (NULL_TREE, var, cfun->local_decls); else - cfun->unexpanded_var_list = + cfun->local_decls = tree_cons (NULL_TREE, remap_decl (var, &id), - cfun->unexpanded_var_list); + cfun->local_decls); } /* Copy the Function's body. */ |