From: Steven Bosscher Date: Tue, 24 Jul 2012 16:37:45 +0000 (+0000) Subject: * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check. X-Git-Tag: releases/gcc-4.8.0~4300 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e040476c57d14db91599b06f66b81bcc29fecf33;p=thirdparty%2Fgcc.git * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check. From-SVN: r189812 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ae289446809..3249f6b23450 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-07-24 Steven Bosscher + + * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check. + 2012-07-24 Ramana Radhakrishnan PR target/54051 diff --git a/gcc/alloc-pool.c b/gcc/alloc-pool.c index 5a1ada708022..fdc047d47ee1 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);