summaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-24 16:37:45 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-24 16:37:45 +0000
commitbdc1331d58bd01048f3e3396d8adfb4abc3eeaa2 (patch)
tree46a6aa00bc2cc7d76d4321cac6cee374285efee2 /gcc/alloc-pool.c
parent8a8e7dae1681fc5316e1dc6514a7876261d44e36 (diff)
downloadgcc-bdc1331d58bd01048f3e3396d8adfb4abc3eeaa2.tar.gz
* alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189812 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alloc-pool.c')
-rw-r--r--gcc/alloc-pool.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/alloc-pool.c b/gcc/alloc-pool.c
index 5a1ada70802..fdc047d47ee 100644
--- a/gcc/alloc-pool.c
+++ b/gcc/alloc-pool.c
@@ -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);