don't use __PTR_TO_INT from obstack.h... well the code is still using obstack interna...
authorMatthias Braun <matze@braunis.de>
Mon, 18 Dec 2006 10:17:10 +0000 (10:17 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 18 Dec 2006 10:17:10 +0000 (10:17 +0000)
[r8474]

ir/ir/irmode.c

index 8e2752b..d1b487b 100644 (file)
@@ -28,6 +28,7 @@
 # include "tv_t.h"
 # include "obst.h"
 # include "irhooks.h"
+# include "irtools.h"
 
 #if 0
 static long long count = 0;
@@ -76,12 +77,12 @@ INLINE static int modes_are_equal(const ir_mode *m, const ir_mode *n)
  */
 static void *next_obstack_adr(struct obstack *o, void *p, size_t s)
 {
-  PTR_INT_TYPE adr = __PTR_TO_INT((char *)p);
+  PTR_INT_TYPE adr = PTR_TO_INT((char *)p);
   int mask = obstack_alignment_mask(o);
 
   adr += s + mask;
 
-  return __INT_TO_PTR(adr & ~mask);
+  return INT_TO_PTR(adr & ~mask);
 }
 
 /**