https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
--- Comment #16 from Andrew Pinski ---
Note starting in GCC 13 at -O3, we are able to optimize this all the way to:
```
int f ()
{
int * _54;
[local count: 114863531]:
_54 = operator new (16);
MEM [(char * {ref-all})_54] =
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
--- Comment #15 from Andrew Pinski ---
This is interesting:
_48 = _149 + 18446744073709551612; // _149 - 4
_63 = _55 + _48;
_18 = _63 - _55;
_19 = _18 /[ex] 4;
_20 = (long unsigned int) _19;
if (_55 != _63)
_18 should be the same as
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
Richard Biener changed:
What|Removed |Added
Target Milestone|7.5 |---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
Richard Biener changed:
What|Removed |Added
Target Milestone|7.4 |7.5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
Ramana Radhakrishnan changed:
What|Removed |Added
Known to fail||7.3.1
--- Comment #14 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
Ramana Radhakrishnan changed:
What|Removed |Added
Known to work||6.4.1, 8.1.0
Known to fail|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
--- Comment #12 from Ramana Radhakrishnan ---
(In reply to Martin Sebor from comment #11)
> *** Bug 86516 has been marked as a duplicate of this bug. ***
(In reply to Paul Gotch from comment #10)
> I'm afraid the changes made to libstdc++ have
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
--- Comment #11 from Martin Sebor ---
*** Bug 86516 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
--- Comment #10 from Paul Gotch ---
I'm afraid the changes made to libstdc++ have only solved part of the
regression if you say something like
std::vector v;
if(c.size() > 0)
c.resize(c.size() - 1);
then you no longer get a warning in 7.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
Richard Biener changed:
What|Removed |Added
Target Milestone|7.3 |7.4
--- Comment #9 from Richard Biener
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641
Martin Sebor changed:
What|Removed |Added
Keywords|diagnostic |
Summary|[7/8 Regression]
11 matches
Mail list logo