[Bug c/41142] New: make implicit pointer conversions an error when sizeof(int) != sizeof(void *)
dannf at dannf dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 21 16:50:00 GMT 2009
Implicit pointer conversions on ia64 are guaranteed to result in a segfault if
the value is dereferenced. This issue can be easily identified by looking for a
combination of gcc warnings. In fact, I have been running all of the build logs
or the Debian distribution through a script that scans for this issue for
several years, and it has caught hundreds of these problems:
http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=dannf@debian.org;which=tag&data=implicit-pointer-conversion&archive=no
script here: http://people.debian.org/~dannf/check-implicit-pointer-functions
I don't know anything about gcc internals, but I'm wondering if it is possible
to generate an error when the appropriate combination of warning conditions is
present?
--
Summary: make implicit pointer conversions an error when
sizeof(int) != sizeof(void *)
Product: gcc
Version: 4.3.4
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dannf at dannf dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41142
More information about the Gcc-bugs
mailing list