diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2006-11-30 07:22:04 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2006-11-30 07:22:04 +0000 |
commit | e9ec5c6b5e65990251fa71ea6e885823d50f3df3 (patch) | |
tree | 04dc45214d4649859b92961c61d2bbdae2f5499d /gcc/alloc-pool.c | |
parent | e26feb2c6033e706c1b56e33e38e530adb06aabe (diff) | |
download | gcc-e9ec5c6b5e65990251fa71ea6e885823d50f3df3.tar.gz |
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
Diffstat (limited to 'gcc/alloc-pool.c')
-rw-r--r-- | gcc/alloc-pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |