diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-30 07:22:04 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-30 07:22:04 +0000 |
commit | 3471582ef848a30f2d0e8b54a6da60778f304654 (patch) | |
tree | 04dc45214d4649859b92961c61d2bbdae2f5499d /gcc/alloc-pool.c | |
parent | 8d13d95a24bd2c37232d2dc114dff3bf31e76b52 (diff) | |
download | ppe42-gcc-3471582ef848a30f2d0e8b54a6da60778f304654.tar.gz ppe42-gcc-3471582ef848a30f2d0e8b54a6da60778f304654.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119357 138bc75d-0d04-0410-961f-82ee72b054a4
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 |