summaryrefslogtreecommitdiffhomepage
path: root/ir/obstack
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2008-10-11 23:20:34 +0200
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2008-10-11 23:20:34 +0200
commitd9e0a4e9951f614c2c350137e14ea0346b3dcc51 (patch)
treef6ea863626447d443bbba668cc6d8cd79f516853 /ir/obstack
parente6ab6b4648deecc230e67727f4d603dd353dfe2d (diff)
- revert r22765
[r22767]
Diffstat (limited to 'ir/obstack')
-rw-r--r--ir/obstack/obstack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ir/obstack/obstack.c b/ir/obstack/obstack.c
index f048ea5..3df7b98 100644
--- a/ir/obstack/obstack.c
+++ b/ir/obstack/obstack.c
@@ -30,11 +30,12 @@
#include <stdio.h> /* Random thing to get __GNU_LIBRARY__. */
#include <stddef.h>
+#include <stdint.h>
/* 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;