- revert r22765
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 11 Oct 2008 21:20:34 +0000 (21:20 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 11 Oct 2008 21:20:34 +0000 (21:20 +0000)
[r22767]

ir/obstack/obstack.c

index f048ea5..3df7b98 100644 (file)
 
 #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;