From 533c4863631a304fb908021829934a6b81fcb24c Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 22 Jul 2002 02:04:25 +0000 Subject: ra-build.c (check_conflict_numbers): Hide unused function. * ra-build.c (check_conflict_numbers): Hide unused function. (livethrough_conflicts_bb): Avoid automatic aggregate initialization. (parts_to_webs_1): Avoid `U' integer constant modifier. (conflicts_between_webs): Wrap a variable in the macro controlling its usage. * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE. (dump_igraph, dump_graph_cost): Avoid string concatenation (dump_static_insn_cost): Avoid automatic aggregate initialization. * ra-rewrite.c (insert_stores): Avoid automatic aggregate initialization. (dump_cost): Avoid string concatenation From-SVN: r55637 --- gcc/ra-rewrite.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'gcc/ra-rewrite.c') diff --git a/gcc/ra-rewrite.c b/gcc/ra-rewrite.c index 2dfe12b..7d0bbb6 100644 --- a/gcc/ra-rewrite.c +++ b/gcc/ra-rewrite.c @@ -666,9 +666,11 @@ insert_stores (new_deaths) if (uid < insn_df_max_uid) { unsigned int n; - struct ra_insn_info info = insn_df[uid]; rtx following = NEXT_INSN (insn); basic_block bb = BLOCK_FOR_INSN (insn); + struct ra_insn_info info; + + info = insn_df[uid]; for (n = 0; n < info.num_defs; n++) { struct web *web = def2web[DF_REF_ID (info.defs[n])]; @@ -1949,20 +1951,18 @@ void dump_cost (level) unsigned int level; { -#define LU HOST_WIDE_INT_PRINT_UNSIGNED ra_debug_msg (level, "Instructions for spilling\n added:\n"); - ra_debug_msg (level, " loads =%d cost=" LU "\n", emitted_spill_loads, - spill_load_cost); - ra_debug_msg (level, " stores=%d cost=" LU "\n", emitted_spill_stores, - spill_store_cost); - ra_debug_msg (level, " remat =%d cost=" LU "\n", emitted_remat, - spill_remat_cost); - ra_debug_msg (level, " removed:\n"); - ra_debug_msg (level, " moves =%d cost=" LU "\n", deleted_move_insns, - deleted_move_cost); - ra_debug_msg (level, " others=%d cost=" LU "\n", deleted_def_insns, - deleted_def_cost); -#undef LU + ra_debug_msg (level, " loads =%d cost=", emitted_spill_loads); + ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, spill_load_cost); + ra_debug_msg (level, "\n stores=%d cost=", emitted_spill_stores); + ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, spill_store_cost); + ra_debug_msg (level, "\n remat =%d cost=", emitted_remat); + ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, spill_remat_cost); + ra_debug_msg (level, "\n removed:\n moves =%d cost=", deleted_move_insns); + ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, deleted_move_cost); + ra_debug_msg (level, "\n others=%d cost=", deleted_def_insns); + ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, deleted_def_cost); + ra_debug_msg (level, "\n"); } /* Initialization of the rewrite phase. */ -- cgit v1.1