[Bug c/54037] Warn pointer to signed integer cast for ilp32

2012-08-14 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54037 H.J. Lu changed: What|Removed |Added Attachment #27836|0 |1 is obsolete|

[Bug c/54037] Warn pointer to signed integer cast for ilp32

2012-07-19 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54037 --- Comment #4 from Andrew Pinski 2012-07-19 23:44:59 UTC --- We have this request a while back and it was rejected for the same reason why I said it won't work for intptr_t (though I cannot find the discussion).

[Bug c/54037] Warn pointer to signed integer cast for ilp32

2012-07-19 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54037 --- Comment #3 from H.J. Lu 2012-07-19 22:04:39 UTC --- (In reply to comment #2) > (In reply to comment #1) > > Created attachment 27836 [details] > > A patch to add -Wpointer-to-signed-int-cast > > This won't work for intptr_t which is a signed

[Bug c/54037] Warn pointer to signed integer cast for ilp32

2012-07-19 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54037 --- Comment #2 from Andrew Pinski 2012-07-19 21:55:24 UTC --- (In reply to comment #1) > Created attachment 27836 [details] > A patch to add -Wpointer-to-signed-int-cast This won't work for intptr_t which is a signed integer type.

[Bug c/54037] Warn pointer to signed integer cast for ilp32

2012-07-19 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54037 --- Comment #1 from H.J. Lu 2012-07-19 21:50:33 UTC --- Created attachment 27836 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27836 A patch to add -Wpointer-to-signed-int-cast