gimple-low.c (lower_function_body): Don't reset_block_changes here.
* gimple-low.c (lower_function_body): Don't reset_block_changes here. * cfgexpand.c (tree_expand_cfg): Do it here. * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here. * config/ia64/ia64.c (ia64_output_mi_thunk): And here. * config/mips/mips.c (mips_output_mi_thunk): And here. * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here. * config/sh/sh.c (sh_output_mi_thunk): And here. * config/sparc/sparc.c (sparc_output_mi_thunk): And here. From-SVN: r84012
This commit is contained in:
parent
4dfa034295
commit
6429e3bef3
9 changed files with 21 additions and 2 deletions
|
@ -1,3 +1,14 @@
|
|||
2004-07-01 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* gimple-low.c (lower_function_body): Don't reset_block_changes here.
|
||||
* cfgexpand.c (tree_expand_cfg): Do it here.
|
||||
* config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
|
||||
* config/ia64/ia64.c (ia64_output_mi_thunk): And here.
|
||||
* config/mips/mips.c (mips_output_mi_thunk): And here.
|
||||
* config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
|
||||
* config/sh/sh.c (sh_output_mi_thunk): And here.
|
||||
* config/sparc/sparc.c (sparc_output_mi_thunk): And here.
|
||||
|
||||
2004-07-01 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* tree.def (RTL_EXPR): Remove.
|
||||
|
|
|
@ -412,6 +412,9 @@ tree_expand_cfg (void)
|
|||
walk_tree (&TREE_TYPE (current_function_decl), set_save_expr_context,
|
||||
current_function_decl, NULL);
|
||||
|
||||
/* Prepare the rtl middle end to start recording block changes. */
|
||||
reset_block_changes ();
|
||||
|
||||
/* Expand the variables recorded during gimple lowering. This must
|
||||
occur before the call to expand_function_start to ensure that
|
||||
all used variables are expanded before we expand anything on the
|
||||
|
|
|
@ -7899,6 +7899,8 @@ alpha_output_mi_thunk_osf (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
|
|||
HOST_WIDE_INT hi, lo;
|
||||
rtx this, insn, funexp;
|
||||
|
||||
reset_block_changes ();
|
||||
|
||||
/* We always require a valid GP. */
|
||||
emit_insn (gen_prologue_ldgp ());
|
||||
emit_note (NOTE_INSN_PROLOGUE_END);
|
||||
|
|
|
@ -8926,6 +8926,7 @@ ia64_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED,
|
|||
reload_completed = 1;
|
||||
epilogue_completed = 1;
|
||||
no_new_pseudos = 1;
|
||||
reset_block_changes ();
|
||||
|
||||
/* Set things up as ia64_expand_prologue might. */
|
||||
last_scratch_gr_reg = 15;
|
||||
|
|
|
@ -7070,6 +7070,7 @@ mips_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
|
|||
/* Pretend to be a post-reload pass while generating rtl. */
|
||||
no_new_pseudos = 1;
|
||||
reload_completed = 1;
|
||||
reset_block_changes ();
|
||||
|
||||
/* Pick a global pointer for -mabicalls. Use $15 rather than $28
|
||||
for TARGET_NEWABI since the latter is a call-saved register. */
|
||||
|
|
|
@ -13382,6 +13382,7 @@ rs6000_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
|
|||
reload_completed = 1;
|
||||
epilogue_completed = 1;
|
||||
no_new_pseudos = 1;
|
||||
reset_block_changes ();
|
||||
|
||||
/* Mark the end of the (empty) prologue. */
|
||||
emit_note (NOTE_INSN_PROLOGUE_END);
|
||||
|
|
|
@ -9494,6 +9494,7 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
|
|||
epilogue_completed = 1;
|
||||
no_new_pseudos = 1;
|
||||
current_function_uses_only_leaf_regs = 1;
|
||||
reset_block_changes ();
|
||||
|
||||
emit_note (NOTE_INSN_PROLOGUE_END);
|
||||
|
||||
|
|
|
@ -8361,6 +8361,7 @@ sparc_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
|
|||
epilogue_completed = 1;
|
||||
no_new_pseudos = 1;
|
||||
current_function_uses_only_leaf_regs = 1;
|
||||
reset_block_changes ();
|
||||
|
||||
emit_note (NOTE_INSN_PROLOGUE_END);
|
||||
|
||||
|
|
|
@ -123,8 +123,6 @@ lower_function_body (void)
|
|||
= blocks_nreverse (BLOCK_SUBBLOCKS (data.block));
|
||||
|
||||
clear_block_marks (data.block);
|
||||
|
||||
reset_block_changes ();
|
||||
}
|
||||
|
||||
struct tree_opt_pass pass_lower_cf =
|
||||
|
|
Loading…
Add table
Reference in a new issue