[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #19 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:2a1c3b69c015ea49e4c7c08291efd8f7e28e1193 commit r12-5891-g2a1c3b69c015ea49e4c7c08291efd8f7e28e1193 Author: Roger Sayle Date: Fri

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-06 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 Aldy Hernandez changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #17 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:4856699eeb2809c50930bafe341a96470877195d commit r12-4971-g4856699eeb2809c50930bafe341a96470877195d Author: Aldy Hernandez Date:

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-06 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #16 from Martin Liška --- (In reply to Aldy Hernandez from comment #15) > Created attachment 51740 [details] > untested patch > > This should do it. Martin, can you verify this fixes it on your end? Yes, it does! Thanks a lot.

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #15 from Aldy Hernandez --- Created attachment 51740 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51740=edit untested patch This should do it. Martin, can you verify this fixes it on your end?

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 Aldy Hernandez changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gnu.org ---

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #13 from Aldy Hernandez --- (In reply to Andrew Macleod from comment #12) > I dont understand why? isnt m.10_120 killed in bb20?    whats the basis > for threading that?  I dont see it Huh. The last thing we do in the solver is

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #12 from Andrew Macleod --- On 11/5/21 8:02 AM, aldyh at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 > > --- Comment #7 from Aldy Hernandez --- > Simplified version without the noise: > > [local

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #11 from Martin Liška --- And note that the benchmark survives -fsanitize=undefined run.

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #10 from Martin Liška --- > So the question to the reporter is does -fwrapv works for the original > testcase? So adding -fwrapv does not help, it still crashes.

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #9 from Aldy Hernandez --- (In reply to Andrew Pinski from comment #8) > (In reply to Aldy Hernandez from comment #5) > > > That is, is signed overflow undefined in overflow? > > > > Errr, "is signed overflow undefined for

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #8 from Andrew Pinski --- (In reply to Aldy Hernandez from comment #5) > > That is, is signed overflow undefined in overflow? > > Errr, "is signed overflow undefined for integer(kind=4)?" Yes it is undefined. Figures spec would

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #7 from Aldy Hernandez --- Simplified version without the noise: [local count: 56063504182]: _134 = M.10_120 + 1; if (_71 <= _134) goto ; [11.00%] else goto ; [89.00%] ... ... [local count: 49896518755]:

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 Martin Liška changed: What|Removed |Added CC||anlauf at gcc dot gnu.org,

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #5 from Aldy Hernandez --- > That is, is signed overflow undefined in overflow? Errr, "is signed overflow undefined for integer(kind=4)?"

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #4 from Aldy Hernandez --- (In reply to Martin Liška from comment #1) > The following file is miscompiled: > > gfortran -c -o m_MergeSorts.fppized.o -I. -Iinclude -Inetcdf/include -O2 > -march=native -g -std=legacy

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-04 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 seurer at gcc dot gnu.org changed: What|Removed |Added CC||seurer at gcc dot gnu.org

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #2 from Martin Liška --- There's dump file diff (search for 'dbgcnt'): https://gist.github.com/marxin/7eadc43d12fdefac6f5b8151a47a8684

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 --- Comment #1 from Martin Liška --- The following file is miscompiled: gfortran -c -o m_MergeSorts.fppized.o -I. -Iinclude -Inetcdf/include -O2 -march=native -g -std=legacy m_MergeSorts.fppized.f90 where first bad debug counter value is:

[Bug tree-optimization/103061] [12 Regression] 527.cam4_r miscompiled with -O2 -march=znver1 since r12-4790-g4b3a325f07acebf4

2021-11-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103061 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Blocks|