[Bug tree-optimization/101278] [12 regression] g++ miscompiles cmake-3.18.5

2021-07-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101278 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/101278] [12 regression] g++ miscompiles cmake-3.18.5

2021-07-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101278 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:4a87605938428f6c4c62d5b92cfc183cd2b2554e commit r12-1952-g4a87605938428f6c4c62d5b92cfc183cd2b2554e Author: Richard Biener Date:

[Bug tree-optimization/101278] [12 regression] g++ miscompiles cmake-3.18.5

2021-07-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101278 --- Comment #4 from Richard Biener --- Created attachment 51093 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51093&action=edit untested patch I will test this. Self-assignments x = x are handled explicitely already.

[Bug tree-optimization/101278] [12 regression] g++ miscompiles cmake-3.18.5

2021-07-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101278 --- Comment #3 from Richard Biener --- struct X { int counter; }; struct X __attribute__((noipa)) foo (struct X x) { x.counter++; if (x.counter == 5) __builtin_exit (0); return x; } int main () { struct X x; x.counter = 0; for

[Bug tree-optimization/101278] [12 regression] g++ miscompiles cmake-3.18.5

2021-07-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101278 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org