[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 changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[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 --- Author: mpolacek Date: Wed Aug 12 17:25:23 2015 New Revision: 226826 URL: https://gcc.gnu.org/viewcvs?rev=226826&root=gcc&view=rev Log: PR c++/55095 * c-common.c (maybe_warn_shift_overflow):

[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 --- 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 changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[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 changed: What|Removed |Added CC||miyuki at gcc dot gnu.org --- Comment

[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 --- 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-07-29 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095 --- Comment #14 from David Binderman --- (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 produced, of which 3780 (97%

[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 changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[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 --- Author: mpolacek Date: Mon Jul 20 13:43:45 2015 New Revision: 225998 URL: https://gcc.gnu.org/viewcvs?rev=225998&root=gcc&view=rev Log: PR c++/55095 * c-common.c (c_fully_fold_internal): War

[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 changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[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 --- 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 in cxx_eval_check_shift_p

[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 changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Co

[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 --- (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 of about 9,600 that I look

[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 --- (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 to work on it. In the

[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 changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[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 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 be available for this

[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 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 available for this: as I under

[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 changed: What|Removed |Added CC||xinliangli at gmail dot com ---

[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 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 1 + (int)log2(value)

[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 changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[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 changed: What|Removed |Added Keywords||diagnostic Status|