aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-05-12 21:26:11 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-05-12 21:26:11 +0000
commit517958ba22c837b57a9ee3dd4c746ccf5f442fc0 (patch)
treecca7ccdbf12cbdaf115e6042b457144f8c853479 /gcc/alloc-pool.c
parent746015842f9a694cfb6b520a6ccb755c87198004 (diff)
downloadgcc-517958ba22c837b57a9ee3dd4c746ccf5f442fc0.zip
gcc-517958ba22c837b57a9ee3dd4c746ccf5f442fc0.tar.gz
gcc-517958ba22c837b57a9ee3dd4c746ccf5f442fc0.tar.bz2
* alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
From-SVN: r66739
Diffstat (limited to 'gcc/alloc-pool.c')
-rw-r--r--gcc/alloc-pool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/alloc-pool.c b/gcc/alloc-pool.c
index cb25b9e..87b05cc 100644
--- a/gcc/alloc-pool.c
+++ b/gcc/alloc-pool.c
@@ -71,8 +71,10 @@ typedef struct allocation_object_def
#define USER_PTR_FROM_ALLOCATION_OBJECT_PTR(X) \
((void *) (((allocation_object *) (X))->u.data))
+#ifdef ENABLE_CHECKING
/* Last used ID. */
static ALLOC_POOL_ID_TYPE last_id;
+#endif
/* Create a pool of things of size SIZE, with NUM in each block we
allocate. */