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.
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
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
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
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.
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
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
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
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
David Binderman dcb314 at hotmail dot com changed:
What|Removed |Added
CC||dcb314 at
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Paolo Carlini paolo.carlini at oracle dot com changed:
What|Removed |Added
CC|
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55095
Jonathan Wakely redi at gcc dot gnu.org changed:
What|Removed |Added
Keywords|
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
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
21 matches
Mail list logo