C99 Status - inttypes.h

Ian Lance Taylor iant@google.com
Thu Jul 21 22:45:00 GMT 2011


Basile Starynkevitch <basile@starynkevitch.net> writes:

> This brings another question. Can a GCC pass use intptr_t (the standard int of the same
> size as a void* pointer)? This is quite useful, for instance when one wants to compute an
> hash, or a unique sorted rank (to be used inside B-trees) from the address of a gimple
> or a tree.

Yes.  There are a number of uses of intptr_t already in the gcc source
code.  We can get away with this because the configure script uses
AC_TYPE_INTPTR_T (via GCC_STDINT_TYPES).

Ian



More information about the Gcc mailing list