From e9ec5c6b5e65990251fa71ea6e885823d50f3df3 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Thu, 30 Nov 2006 07:22:04 +0000 Subject: [PATCH] cgraphunit.c (cgraph_finalize_compilation_unit): Add a newline at the end of a diagnostics message. * cgraphunit.c (cgraph_finalize_compilation_unit): Add a newline at the end of a diagnostics message. * alloc-pool.c (pool_free): Postpone clearing the pool entry until after asserting that it was allocated in the right pool. * cfgrtl.c (print_rtl_with_bb): Print predecessor and successor edge information as well. Make output of live regs on exit consistent with live regs on entry. From-SVN: r119357 --- gcc/ChangeLog | 12 ++++++++++++ gcc/alloc-pool.c | 4 ++-- gcc/cfgrtl.c | 16 +++++++++++++++- gcc/cgraphunit.c | 2 +- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 035324e7aa0..dd83c8e84cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2006-11-30 Steven Bosscher + + * cgraphunit.c (cgraph_finalize_compilation_unit): Add a newline + at the end of a diagnostics message. + + * alloc-pool.c (pool_free): Postpone clearing the pool entry + until after asserting that it was allocated in the right pool. + + * cfgrtl.c (print_rtl_with_bb): Print predecessor and + successor edge information as well. Make output of live regs + on exit consistent with live regs on entry. + 2006-11-30 Uros Bizjak PR target/29852 diff --git a/gcc/alloc-pool.c b/gcc/alloc-pool.c index fb40577953b..0a58f37bebc 100644 --- a/gcc/alloc-pool.c +++ b/gcc/alloc-pool.c @@ -292,11 +292,11 @@ pool_free (alloc_pool pool, void *ptr) gcc_assert (ptr); #ifdef ENABLE_CHECKING - memset (ptr, 0xaf, pool->elt_size - offsetof (allocation_object, u.data)); - /* Check whether the PTR was allocated from POOL. */ gcc_assert (pool->id == ALLOCATION_OBJECT_PTR_FROM_USER_PTR (ptr)->id); + memset (ptr, 0xaf, pool->elt_size - offsetof (allocation_object, u.data)); + /* Mark the element to be free. */ ALLOCATION_OBJECT_PTR_FROM_USER_PTR (ptr)->id = 0; #else diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 6f474c0441d..4ff3058e102 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1646,6 +1646,8 @@ print_rtl_with_bb (FILE *outf, rtx rtx_first) for (tmp_rtx = rtx_first; NULL != tmp_rtx; tmp_rtx = NEXT_INSN (tmp_rtx)) { int did_output; + edge_iterator ei; + edge e; if ((bb = start[INSN_UID (tmp_rtx)]) != NULL) { @@ -1653,6 +1655,12 @@ print_rtl_with_bb (FILE *outf, rtx rtx_first) bb->index); dump_regset (bb->il.rtl->global_live_at_start, outf); putc ('\n', outf); + FOR_EACH_EDGE (e, ei, bb->preds) + { + fputs (";; Pred edge ", outf); + dump_edge_info (outf, e, 0); + fputc ('\n', outf); + } } if (in_bb_p[INSN_UID (tmp_rtx)] == NOT_IN_BB @@ -1666,10 +1674,16 @@ print_rtl_with_bb (FILE *outf, rtx rtx_first) if ((bb = end[INSN_UID (tmp_rtx)]) != NULL) { - fprintf (outf, ";; End of basic block %d, registers live:\n", + fprintf (outf, ";; End of basic block %d, registers live:", bb->index); dump_regset (bb->il.rtl->global_live_at_end, outf); putc ('\n', outf); + FOR_EACH_EDGE (e, ei, bb->succs) + { + fputs (";; Succ edge ", outf); + dump_edge_info (outf, e, 1); + fputc ('\n', outf); + } } if (did_output) diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 59a7e0d4cd1..1e76777d663 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1076,7 +1076,7 @@ cgraph_finalize_compilation_unit (void) if (!quiet_flag) { - fprintf (stderr, "\nAnalyzing compilation unit"); + fprintf (stderr, "\nAnalyzing compilation unit\n"); fflush (stderr); }