public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` [not found] <bug-21948-7667@http.gcc.gnu.org/bugzilla/> @ 2007-02-23 17:43 ` manu at gcc dot gnu dot org 2007-02-25 14:22 ` pluto at agmk dot net ` (2 subsequent siblings) 3 siblings, 0 replies; 6+ messages in thread From: manu at gcc dot gnu dot org @ 2007-02-23 17:43 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from manu at gcc dot gnu dot org 2007-02-23 17:43 ------- Could you elaborate a litte bit more for me? We have already -Wint-to-pointer-cast and -Wpointer-to-int-cast enabled by defaul in C. Don't those work for you? -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` [not found] <bug-21948-7667@http.gcc.gnu.org/bugzilla/> 2007-02-23 17:43 ` [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` manu at gcc dot gnu dot org @ 2007-02-25 14:22 ` pluto at agmk dot net 2007-02-25 16:03 ` manu at gcc dot gnu dot org 2007-02-25 16:17 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 6+ messages in thread From: pluto at agmk dot net @ 2007-02-25 14:22 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pluto at agmk dot net 2007-02-25 14:22 ------- (In reply to comment #2) > Could you elaborate a litte bit more for me? > > We have already -Wint-to-pointer-cast and -Wpointer-to-int-cast enabled by > defaul in C. Don't those work for you? as i have said, i need a compilation error on such casts. 4.2 has a nice -Werror=foo feature, but this PR is about 4.1. if you don't plan to backport -Werror=foo feature to 4.1 i'll close this PR with suitable comment. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` [not found] <bug-21948-7667@http.gcc.gnu.org/bugzilla/> 2007-02-23 17:43 ` [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` manu at gcc dot gnu dot org 2007-02-25 14:22 ` pluto at agmk dot net @ 2007-02-25 16:03 ` manu at gcc dot gnu dot org 2007-02-25 16:17 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 6+ messages in thread From: manu at gcc dot gnu dot org @ 2007-02-25 16:03 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from manu at gcc dot gnu dot org 2007-02-25 16:03 ------- (In reply to comment #3) > (In reply to comment #2) > > as i have said, i need a compilation error on such casts. > 4.2 has a nice -Werror=foo feature, but this PR is about 4.1. > if you don't plan to backport -Werror=foo feature to 4.1 > i'll close this PR with suitable comment. > OK. Thanks for the clarification. It doesn't correspond to me to decide whether it should be backported. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |4.2.0 4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` [not found] <bug-21948-7667@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2007-02-25 16:03 ` manu at gcc dot gnu dot org @ 2007-02-25 16:17 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-02-25 16:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from pinskia at gcc dot gnu dot org 2007-02-25 16:17 ------- Fixed in 4.2. Closing as fixed as this is a request for a new feature. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/21948] New: [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` @ 2005-06-07 14:40 pluto at agmk dot net 2005-06-07 14:43 ` [Bug c/21948] " pinskia at gcc dot gnu dot org 2005-09-18 1:58 ` pinskia at gcc dot gnu dot org 0 siblings, 2 replies; 6+ messages in thread From: pluto at agmk dot net @ 2005-06-07 14:40 UTC (permalink / raw) To: gcc-bugs It would be nice to see a -Werror-cast-size option on 64-bits archs. -Werror-cast-size could help develop portable (32/64-bits) software. -- Summary: [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` 2005-06-07 14:40 [Bug other/21948] New: " pluto at agmk dot net @ 2005-06-07 14:43 ` pinskia at gcc dot gnu dot org 2005-09-18 1:58 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-06-07 14:43 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Component|other |c Keywords| |diagnostic http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` 2005-06-07 14:40 [Bug other/21948] New: " pluto at agmk dot net 2005-06-07 14:43 ` [Bug c/21948] " pinskia at gcc dot gnu dot org @ 2005-09-18 1:58 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-18 1:58 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 01:58 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-09-18 01:58:03 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-25 16:17 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-21948-7667@http.gcc.gnu.org/bugzilla/> 2007-02-23 17:43 ` [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` manu at gcc dot gnu dot org 2007-02-25 14:22 ` pluto at agmk dot net 2007-02-25 16:03 ` manu at gcc dot gnu dot org 2007-02-25 16:17 ` pinskia at gcc dot gnu dot org 2005-06-07 14:40 [Bug other/21948] New: " pluto at agmk dot net 2005-06-07 14:43 ` [Bug c/21948] " pinskia at gcc dot gnu dot org 2005-09-18 1:58 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).