From: Matthias Braun Date: Mon, 18 Dec 2006 10:17:10 +0000 (+0000) Subject: don't use __PTR_TO_INT from obstack.h... well the code is still using obstack interna... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ff447a3d06305cd5a6110352a8e47c0e6c1096f6;p=libfirm don't use __PTR_TO_INT from obstack.h... well the code is still using obstack internals, but fixing this correctly would require alot of boring work so I leave this as an excercise for the reader :-) [r8474] --- diff --git a/ir/ir/irmode.c b/ir/ir/irmode.c index 8e2752bcb..d1b487bb9 100644 --- a/ir/ir/irmode.c +++ b/ir/ir/irmode.c @@ -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); } /**