* alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.

From-SVN: r189812
This commit is contained in:
Steven Bosscher 2012-07-24 16:37:45 +00:00
parent a0b0a0c34d
commit e040476c57
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
* alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
PR target/54051

View File

@ -140,11 +140,10 @@ create_alloc_pool (const char *name, size_t size, size_t num)
/* Now align the size to a multiple of 4. */
size = align_eight (size);
if (ENABLE_CHECKING)
{
/* Add the aligned size of ID. */
size += offsetof (allocation_object, u.data);
}
#ifdef ENABLE_CHECKING
/* Add the aligned size of ID. */
size += offsetof (allocation_object, u.data);
#endif
/* Um, we can't really allocate 0 elements per block. */
gcc_checking_assert (num);