[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Known to work|

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #30 from CVS Commits --- The releases/gcc-12 branch has been updated by Richard Biener : https://gcc.gnu.org/g:b9f58edfc2ccb0fb3840751a2fb4268ce5dd9b3d commit r12-8837-gb9f58edfc2ccb0fb3840751a2fb4268ce5dd9b3d Author: Richard

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #29 from CVS Commits --- The releases/gcc-12 branch has been updated by Richard Biener : https://gcc.gnu.org/g:641369e29f57c508e6316d5d221c1a92900163f9 commit r12-8836-g641369e29f57c508e6316d5d221c1a92900163f9 Author: Jakub

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #28 from CVS Commits --- The releases/gcc-12 branch has been updated by Richard Biener : https://gcc.gnu.org/g:e8d5f3a1b5a5839cb1db57d6f6766469cc4f8747 commit r12-8835-ge8d5f3a1b5a5839cb1db57d6f6766469cc4f8747 Author: Richard

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-13 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #27 from Jan Žižka --- (In reply to rguent...@suse.de from comment #26) > > They are clearly necessary to fix this bug. What I'm unsure yet about > is the risk of generally enhancing VN for this diagnostic regression. > The

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-13 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #26 from rguenther at suse dot de --- On Tue, 11 Oct 2022, jan.zizka at nokia dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 > > --- Comment #25 from Jan ?i?ka --- > I have backported all three patches but

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-11 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #25 from Jan Žižka --- I have backported all three patches but true that I didn't try to test without VN enhancement. Would it help if I'd try that with our production code and the reproducers? Or anything else I could try so that

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #24 from Richard Biener --- Note I'm still pondering whether to backport the VN enhancement, for now I've backported the VN/PRE optimization regression fix.

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-10-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #23 from CVS Commits --- The releases/gcc-12 branch has been updated by Richard Biener : https://gcc.gnu.org/g:e364e27b6636ba09755790358910f199d07194b3 commit r12-8820-ge364e27b6636ba09755790358910f199d07194b3 Author: Richard

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #22 from Jan Žižka --- Great, our production code builds just fine with af611afe5fcc908a6678b5b205fb5af7d64fbcb2 :-) thanks a lot.

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #21 from Richard Biener --- try again!

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #20 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:af611afe5fcc908a6678b5b205fb5af7d64fbcb2 commit r13-2817-gaf611afe5fcc908a6678b5b205fb5af7d64fbcb2 Author: Richard Biener Date:

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #19 from Richard Biener --- (In reply to Jan Žižka from comment #18) > Created attachment 53617 [details] > Third reproducer failing with 9baee6181b4e427e0b5ba417e51424c15858dce7 > > I did cherry-pick

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #18 from Jan Žižka --- Created attachment 53617 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53617=edit Third reproducer failing with 9baee6181b4e427e0b5ba417e51424c15858dce7 I did cherry-pick

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #17 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a0de11d0d22054b6fd76a0730a3ec807542379d0 commit r13-2806-ga0de11d0d22054b6fd76a0730a3ec807542379d0 Author: Jakub Jelinek Date:

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #16 from Richard Biener --- This addressed the other missed optimization (which isn't a regression), it should make optimizing the m_initialized flag status more consistent.

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #15 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:9baee6181b4e427e0b5ba417e51424c15858dce7 commit r13-2772-g9baee6181b4e427e0b5ba417e51424c15858dce7 Author: Richard Biener Date:

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 Richard Biener changed: What|Removed |Added Attachment #53597|0 |1 is obsolete|

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #13 from Richard Biener --- Created attachment 53597 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53597=edit candidate patch For reference this is the patch I was talking about. I'm sure I've made a mistake in reasoning

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-19 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #12 from Jan Žižka --- (In reply to Richard Biener from comment #11) > So there's a similar missed optimization but it's not caused by the bisected > revision. Ah I see. I didn't try to bisect this again. I can do that if that

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #11 from Richard Biener --- So there's a similar missed optimization but it's not caused by the bisected revision. The situation is like float bar, baz; void foo (int *p, int n) { *p = 0; do { bar = 1.; if (*p)

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-15 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #10 from Jan Žižka --- Created attachment 53581 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53581=edit Second reproducer failing with 5edf02ed2b6de024f83a023d046a6a18f645bc83 I have cherry-picked the fix on top of gcc 12

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 Richard Biener changed: What|Removed |Added Summary|[12/13 Regression] Bogus|[12 Regression] Bogus