This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
ia64 eh, part 9
- To: gcc-patches at gcc dot gnu dot org
- Subject: ia64 eh, part 9
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 27 Mar 2001 22:55:14 -0800
The one remaining use of the argument is for calling another
function that will vanish shortly.
r~
* flow.c (cleanup_cfg): Take no argument.
* output.h, sibcall.c, toplev.c: Update all calls.
Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.386
diff -c -p -d -r1.386 flow.c
*** flow.c 2001/03/28 06:22:22 1.386
--- flow.c 2001/03/28 06:50:24
*************** find_basic_blocks_1 (f)
*** 1044,1055 ****
/* Tidy the CFG by deleting unreachable code and whatnot. */
void
! cleanup_cfg (f)
! rtx f;
{
delete_unreachable_blocks ();
move_stray_eh_region_notes ();
! record_active_eh_regions (f);
try_merge_blocks ();
mark_critical_edges ();
--- 1044,1054 ----
/* Tidy the CFG by deleting unreachable code and whatnot. */
void
! cleanup_cfg ()
{
delete_unreachable_blocks ();
move_stray_eh_region_notes ();
! record_active_eh_regions (get_insns ());
try_merge_blocks ();
mark_critical_edges ();
Index: output.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/output.h,v
retrieving revision 1.55
diff -c -p -d -r1.55 output.h
*** output.h 2001/02/07 01:04:36 1.55
--- output.h 2001/03/28 06:50:24
*************** extern int regno_uninitialized PARAMS (
*** 133,139 ****
extern int regno_clobbered_at_setjmp PARAMS ((int));
extern void dump_flow_info PARAMS ((FILE *));
extern void find_basic_blocks PARAMS ((rtx, int, FILE *));
! extern void cleanup_cfg PARAMS ((rtx));
extern void free_basic_block_vars PARAMS ((int));
extern void set_block_num PARAMS ((rtx, int));
extern void check_function_return_warnings PARAMS ((void));
--- 133,139 ----
extern int regno_clobbered_at_setjmp PARAMS ((int));
extern void dump_flow_info PARAMS ((FILE *));
extern void find_basic_blocks PARAMS ((rtx, int, FILE *));
! extern void cleanup_cfg PARAMS ((void));
extern void free_basic_block_vars PARAMS ((int));
extern void set_block_num PARAMS ((rtx, int));
extern void check_function_return_warnings PARAMS ((void));
Index: sibcall.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sibcall.c,v
retrieving revision 1.14
diff -c -p -d -r1.14 sibcall.c
*** sibcall.c 2001/02/20 05:49:06 1.14
--- sibcall.c 2001/03/28 06:50:24
*************** optimize_sibling_and_tail_recursive_call
*** 514,520 ****
/* We need cfg information to determine which blocks are succeeded
only by the epilogue. */
find_basic_blocks (insns, max_reg_num (), 0);
! cleanup_cfg (insns);
/* If there are no basic blocks, then there is nothing to do. */
if (n_basic_blocks == 0)
--- 514,520 ----
/* We need cfg information to determine which blocks are succeeded
only by the epilogue. */
find_basic_blocks (insns, max_reg_num (), 0);
! cleanup_cfg ();
/* If there are no basic blocks, then there is nothing to do. */
if (n_basic_blocks == 0)
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.444
diff -c -p -d -r1.444 toplev.c
*** toplev.c 2001/03/28 06:11:48 1.444
--- toplev.c 2001/03/28 06:50:24
*************** rest_of_compilation (decl)
*** 2955,2961 ****
if (optimize > 0)
{
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg (insns);
/* ??? Run if-conversion before delete_null_pointer_checks,
since the later does not preserve the CFG. This should
--- 2955,2961 ----
if (optimize > 0)
{
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg ();
/* ??? Run if-conversion before delete_null_pointer_checks,
since the later does not preserve the CFG. This should
*************** rest_of_compilation (decl)
*** 3025,3031 ****
timevar_push (TV_JUMP);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg (insns);
delete_null_pointer_checks (insns);
timevar_pop (TV_JUMP);
--- 3025,3031 ----
timevar_push (TV_JUMP);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg ();
delete_null_pointer_checks (insns);
timevar_pop (TV_JUMP);
*************** rest_of_compilation (decl)
*** 3056,3062 ****
open_dump_file (DFI_ssa, decl);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg (insns);
convert_to_ssa ();
close_dump_file (DFI_ssa, print_rtl_with_bb, insns);
--- 3056,3062 ----
open_dump_file (DFI_ssa, decl);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg ();
convert_to_ssa ();
close_dump_file (DFI_ssa, print_rtl_with_bb, insns);
*************** rest_of_compilation (decl)
*** 3111,3117 ****
open_dump_file (DFI_gcse, decl);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg (insns);
tem = gcse_main (insns, rtl_dump_file);
save_csb = flag_cse_skip_blocks;
--- 3111,3117 ----
open_dump_file (DFI_gcse, decl);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg ();
tem = gcse_main (insns, rtl_dump_file);
save_csb = flag_cse_skip_blocks;
*************** rest_of_compilation (decl)
*** 3209,3215 ****
timevar_push (TV_IFCVT);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg (insns);
if_convert (0);
timevar_pop(TV_IFCVT);
--- 3209,3215 ----
timevar_push (TV_IFCVT);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg ();
if_convert (0);
timevar_pop(TV_IFCVT);
*************** rest_of_compilation (decl)
*** 3255,3261 ****
open_dump_file (DFI_cfg, decl);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg (insns);
check_function_return_warnings ();
close_dump_file (DFI_cfg, print_rtl_with_bb, insns);
--- 3255,3261 ----
open_dump_file (DFI_cfg, decl);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg ();
check_function_return_warnings ();
close_dump_file (DFI_cfg, print_rtl_with_bb, insns);
*************** rest_of_compilation (decl)
*** 3330,3336 ****
timevar_push (TV_FLOW);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg (insns);
/* Blimey. We've got to have the CFG up to date for the call to
if_convert below. However, the random deletion of blocks
--- 3330,3336 ----
timevar_push (TV_FLOW);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
! cleanup_cfg ();
/* Blimey. We've got to have the CFG up to date for the call to
if_convert below. However, the random deletion of blocks
*************** rest_of_compilation (decl)
*** 3544,3550 ****
if (optimize)
{
! cleanup_cfg (insns);
life_analysis (insns, rtl_dump_file, PROP_FINAL);
/* This is kind of a heuristic. We need to run combine_stack_adjustments
--- 3544,3550 ----
if (optimize)
{
! cleanup_cfg ();
life_analysis (insns, rtl_dump_file, PROP_FINAL);
/* This is kind of a heuristic. We need to run combine_stack_adjustments