diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-18 05:26:12 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-18 05:26:12 +0000 |
commit | edb7afe85b789b3783e3e7a5a0d84f41e9eb2348 (patch) | |
tree | ff651786f6b6c26df6f5b099b6f4c00550e248dd /gcc/function.c | |
parent | 4f364038e71ee1af10da6b8218006346215f7275 (diff) | |
download | gcc-edb7afe85b789b3783e3e7a5a0d84f41e9eb2348.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134425 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/gcc/function.c b/gcc/function.c index 7f34de3997b..c804c5e32f0 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -289,7 +289,6 @@ free_after_compilation (struct function *f) f->machine = NULL; f->cfg = NULL; - f->epilogue_delay_list = NULL; regno_reg_rtx = NULL; } @@ -379,8 +378,8 @@ assign_stack_local (enum machine_mode mode, HOST_WIDE_INT size, int align) if (alignment * BITS_PER_UNIT > PREFERRED_STACK_BOUNDARY) alignment = PREFERRED_STACK_BOUNDARY / BITS_PER_UNIT; - if (cfun->stack_alignment_needed < alignment * BITS_PER_UNIT) - cfun->stack_alignment_needed = alignment * BITS_PER_UNIT; + if (crtl->stack_alignment_needed < alignment * BITS_PER_UNIT) + crtl->stack_alignment_needed = alignment * BITS_PER_UNIT; /* Calculate how many bytes the start of local variables is off from stack alignment. */ @@ -2379,7 +2378,7 @@ assign_parm_adjust_stack_rtl (struct assign_parm_data_one *data) /* If stack protection is in effect for this function, don't leave any pointers in their passed stack slots. */ - else if (cfun->stack_protect_guard + else if (crtl->stack_protect_guard && (flag_stack_protect == 2 || data->passed_pointer || POINTER_TYPE_P (data->nominal_type))) @@ -3286,8 +3285,8 @@ locate_and_pad_parm (enum machine_mode passed_mode, tree type, int in_regs, calling function side. */ if (boundary > PREFERRED_STACK_BOUNDARY) boundary = PREFERRED_STACK_BOUNDARY; - if (cfun->stack_alignment_needed < boundary) - cfun->stack_alignment_needed = boundary; + if (crtl->stack_alignment_needed < boundary) + crtl->stack_alignment_needed = boundary; #ifdef ARGS_GROW_DOWNWARD locate->slot_offset.constant = -initial_offset_ptr->constant; @@ -3842,9 +3841,6 @@ allocate_struct_function (tree fndecl, bool abstract_p) cfun = ggc_alloc_cleared (sizeof (struct function)); - cfun->stack_alignment_needed = STACK_BOUNDARY; - cfun->preferred_stack_boundary = STACK_BOUNDARY; - current_function_funcdef_no = get_next_funcdef_no (); cfun->function_frequency = FUNCTION_FREQUENCY_NORMAL; @@ -4020,9 +4016,9 @@ stack_protect_prologue (void) /* Avoid expand_expr here, because we don't want guard_decl pulled into registers unless absolutely necessary. And we know that - cfun->stack_protect_guard is a local stack slot, so this skips + crtl->stack_protect_guard is a local stack slot, so this skips all the fluff. */ - x = validize_mem (DECL_RTL (cfun->stack_protect_guard)); + x = validize_mem (DECL_RTL (crtl->stack_protect_guard)); y = validize_mem (DECL_RTL (guard_decl)); /* Allow the target to copy from Y to X without leaking Y into a @@ -4058,9 +4054,9 @@ stack_protect_epilogue (void) /* Avoid expand_expr here, because we don't want guard_decl pulled into registers unless absolutely necessary. And we know that - cfun->stack_protect_guard is a local stack slot, so this skips + crtl->stack_protect_guard is a local stack slot, so this skips all the fluff. */ - x = validize_mem (DECL_RTL (cfun->stack_protect_guard)); + x = validize_mem (DECL_RTL (crtl->stack_protect_guard)); y = validize_mem (DECL_RTL (guard_decl)); /* Allow the target to compare Y with X without leaking either into @@ -4581,7 +4577,7 @@ expand_function_end (void) emit_insn (gen_blockage ()); /* If stack protection is enabled for this function, check the guard. */ - if (cfun->stack_protect_guard) + if (crtl->stack_protect_guard) stack_protect_epilogue (); /* If we had calls to alloca, and this machine needs |