summaryrefslogtreecommitdiffstats
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-03 18:21:34 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-03 18:21:34 +0000
commita28b091bb16c3f096e8093f22104b50ac28c7970 (patch)
tree290d6d487116e9537e29f8f12fd465c26c5cc41f /gcc/cpphash.h
parent498f6d3f67808b0100f57c084d9c30d3e7287537 (diff)
downloadppe42-gcc-a28b091bb16c3f096e8093f22104b50ac28c7970.tar.gz
ppe42-gcc-a28b091bb16c3f096e8093f22104b50ac28c7970.zip
* cpphash.h: Rename _ALIGN POOL_ALIGN.
* cpplex.c (new_chunk, _cpp_pool_reserve): Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 73744889392..a7f1ad4266e 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -43,14 +43,15 @@ struct htab;
#define CPP_STACK_MAX 200
/* Memory pools. */
-#define _ALIGN(size, align) (((size) + ((align) - 1)) & ~((align) - 1))
+#define POOL_ALIGN(size, align) (((size) + ((align) - 1)) & ~((align) - 1))
#define POOL_FRONT(p) ((p)->cur->front)
#define POOL_LIMIT(p) ((p)->cur->limit)
#define POOL_BASE(p) ((p)->cur->base)
#define POOL_SIZE(p) ((p)->cur->limit - (p)->cur->base)
#define POOL_ROOM(p) ((p)->cur->limit - (p)->cur->front)
#define POOL_USED(p) ((p)->cur->front - (p)->cur->base)
-#define POOL_COMMIT(p, len) do {((p)->cur->front += _ALIGN (len, (p)->align));\
+#define POOL_COMMIT(p, len) do {\
+ ((p)->cur->front += POOL_ALIGN (len, (p)->align));\
if ((p)->cur->front > (p)->cur->limit) abort ();} while (0)
typedef struct cpp_chunk cpp_chunk;
OpenPOWER on IntegriCloud