This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C99 Status - inttypes.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]