]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jul 2012 16:37:45 +0000 (16:37 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jul 2012 16:37:45 +0000 (16:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189812 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/alloc-pool.c

index 2ae289446809941e683df0b74686f05751b08d3e..3249f6b2345009c6227fc6f92312f3711ae97d2c 100644 (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
index 5a1ada708022944bf4ac53e0d33aea78847e99f9..fdc047d47ee13cc5f43be7a988f5798f501f2798 100644 (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);