https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Marek Polacek changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|---
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):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
--- Comment #18 from Marek Polacek ---
Testing a fix for the sign bit problem.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Marek Polacek changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Mikhail Maltsev changed:
What|Removed |Added
CC||miyuki at gcc dot gnu.org
--- Comment
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.
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%
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
David Binderman changed:
What|Removed |Added
CC||dcb314 at hotmail dot com
--- Comment
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Paolo Carlini changed:
What|Removed |Added
CC||xinliangli at gmail dot com
---
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)
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,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Jonathan Wakely changed:
What|Removed |Added
Keywords||diagnostic
Status|
21 matches
Mail list logo