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]

What does coding-style tells about integer types for pointers ?


Hi,

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 ?

Regards,
 i.A. Kai Tietz


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