This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What does coding-style tells about integer types for pointers ?
Kai Tietz <Kai.Tietz@onevision.com> writes:
> while porting gcc to the new target x86_64-pc-mingw32 I noticed, that on
> many places the long type is wrongly used as equivalent for pointers. This
> leads for this MS compatible target to some problems, because the long is
> just 4 bytes long and the pointer 8 bytes. I found this problems until now
> in libc++, libiberty. There are ISO types defined for this case, as
> intptr_t and uintptr_t. Is there something defined in the coding style ?
Code in gcc which assumes that sizeof (long) == sizeof (void *) is
broken. Tell us where that code is, and we will try to fix it.
Ian