http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-07-20 
15:54:08 UTC ---
That patch can't work properly, on targets where uintptr_t isn't unsigned long
you'll either get warnings from using %lx for it, or it will misbehave if
uintptr_t is even different size.  You either need to cast the argument
cast to uintptr_t afterwards to (unsigned long), or some other type and adjust
%lx to something matching it.  POSIX supports %zx for size_t and %tx for
ptrdiff_t, but uintptr_t doesn't have to match either of those, furthermore we
shouldn't rely on it being supported (unlike %lx).

Reply via email to