[Bug c++/55095] Wshift-overflow

2015-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #18 from Marek Polacek mpolacek at gcc dot gnu.org --- Testing a fix for the sign bit problem.

[Bug c++/55095] Wshift-overflow

2015-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|REOPENED

[Bug c++/55095] Wshift-overflow

2015-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|REOPENED|RESOLVED

[Bug c++/55095] Wshift-overflow

2015-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #19 from Marek Polacek mpolacek at gcc dot gnu.org --- Author: mpolacek Date: Wed Aug 12 17:25:23 2015 New Revision: 226826 URL: https://gcc.gnu.org/viewcvs?rev=226826root=gccview=rev Log: PR c++/55095 * c-common.c

[Bug c++/55095] Wshift-overflow

2015-08-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #15 from Marek Polacek mpolacek at gcc dot gnu.org --- Yea, I'm afraid we'll have to do what you suggest. And warn for the sign bit only when -Wshift-overflow=2.

[Bug c++/55095] Wshift-overflow

2015-08-03 Thread miyuki at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Mikhail Maltsev miyuki at gcc dot gnu.org changed: What|Removed |Added CC||miyuki at gcc

[Bug c++/55095] Wshift-overflow

2015-07-29 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #14 from David Binderman dcb314 at hotmail dot com --- (In reply to Marek Polacek from comment #13) Implemented for GCC 6. Suggestion for improvement, based on compiling Linux kernel. 3901 Wshift-overflow warning messages were

[Bug c++/55095] Wshift-overflow

2015-07-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #12 from Marek Polacek mpolacek at gcc dot gnu.org --- Author: mpolacek Date: Mon Jul 20 13:43:45 2015 New Revision: 225998 URL: https://gcc.gnu.org/viewcvs?rev=225998root=gccview=rev Log: PR c++/55095 * c-common.c

[Bug c++/55095] Wshift-overflow

2015-07-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug c++/55095] Wshift-overflow

2015-05-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #10 from Marek Polacek mpolacek at gcc dot gnu.org --- I've started looking into this. Unfortunately, int_const_binop_1 doesn't say whether an overflow occurred for e.g. 10 30. So what we need to do is something akin to what I did

[Bug c++/55095] Wshift-overflow

2015-05-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/55095] Wshift-overflow

2015-04-29 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||mpolacek at

[Bug c++/55095] Wshift-overflow

2014-09-11 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 David Binderman dcb314 at hotmail dot com changed: What|Removed |Added CC||dcb314 at

[Bug c++/55095] Wshift-overflow

2014-09-11 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #7 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to David Binderman from comment #6) Still broken a couple of years later. I just got bitten by this one. I think we want this but nobody so far got enough free time

[Bug c++/55095] Wshift-overflow

2014-09-11 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #8 from David Binderman dcb314 at hotmail dot com --- (In reply to Manuel López-Ibáñez from comment #7) I think we want this but nobody so far got enough free time to work on it. I checked Redhat Fedora and only three packages out

[Bug c++/55095] Wshift-overflow

2012-10-28 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC|

[Bug c++/55095] Wshift-overflow

2012-10-28 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #4 from joseph at codesourcery dot com joseph at codesourcery dot com 2012-10-28 17:58:55 UTC --- The constant folder (fold-const.c:int_const_binop_1) would seem to be the place where overflow information would most readily be

[Bug c++/55095] Wshift-overflow

2012-10-28 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #5 from Manuel López-Ibáñez manu at gcc dot gnu.org 2012-10-28 18:34:43 UTC --- (In reply to comment #4) The constant folder (fold-const.c:int_const_binop_1) would seem to be the place where overflow information would most readily

[Bug c++/55095] Wshift-overflow

2012-10-27 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords|

[Bug c++/55095] Wshift-overflow

2012-10-27 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||jason at

[Bug c++/55095] Wshift-overflow

2012-10-27 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2012-10-27 18:39:39 UTC --- (In reply to comment #1) Is there any function to compute how many bits are required to store a value? For positive values it's easy, something like