From d9e0a4e9951f614c2c350137e14ea0346b3dcc51 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sat, 11 Oct 2008 21:20:34 +0000 Subject: [PATCH] - revert r22765 [r22767] --- ir/obstack/obstack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/obstack/obstack.c b/ir/obstack/obstack.c index f048ea573..3df7b9896 100644 --- a/ir/obstack/obstack.c +++ b/ir/obstack/obstack.c @@ -30,11 +30,12 @@ #include /* Random thing to get __GNU_LIBRARY__. */ #include +#include /* Determine default alignment. */ union fooround { - unsigned i; + uintmax_t i; long double d; void *p; }; @@ -138,7 +139,7 @@ _obstack_begin (struct obstack *h, chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); if (!chunk) (*obstack_alloc_failed_handler) (); - h->next_free = h->object_base = __PTR_ALIGN((char *) chunk, chunk->contents, + h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, alignment - 1); h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size; -- 2.20.1