This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What does coding-style tells about integer types for pointers ?
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 8 Mar 2007 17:52:42 +0100
- Subject: What does coding-style tells about integer types for pointers ?
Yes, it does. The pointer cast to a long and the cast of a long to a
pointer e.g. in pex-win32 leads under x86_64 to an serious
pointer-truncation. Windows x86 may have pointers exceeding the 2^31
range. For linux on x86_64 it would fit, because the long has the sizeof a
pointer, but this isn't so for mingw ;(
Regards,
i.A. Kai Tietz
----------------------------------------
Kai Tietz - Software engineering
OneVision Software Entwicklungs GmbH & Co KG
Dr.-Leo-Ritter-Str. 9, 93049 Regensburg, Germany
Phone: +49-941-78004-0
FAX: +49-941-78004-489
WWW: http://www.OneVision.com
DJ Delorie <dj@redhat.com>
08.03.2007 17:30
To
Kai.Tietz@onevision.com
cc
gcc@gcc.gnu.org
Subject
Re: What does coding-style tells about integer types for pointers ?
> In libiberty I found the following points.
Do any of these cause real failures?