https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106075
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 54979 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54979&action=edit patch This patch fixes the testcase but it causes Ada and Go failures. I've isolated the Ada FAILs to the dse.cc change but then I'm not really into this RTL optimization pass nor the pecularities of Ada (or Go). === acats tests === FAIL: c37009a FAIL: c37208a FAIL: c41103a FAIL: c41103b FAIL: c41301a FAIL: c55c02b FAIL: c87b40a FAIL: cc1018a === gnat tests === Running target unix/ FAIL: gnat.dg/opt47.adb execution test === go tests === Running target unix/ FAIL: go.go-torture/execute/names-1.go execution, -O1 FAIL: go.go-torture/execute/names-1.go execution, -O2 FAIL: go.go-torture/execute/names-1.go execution, -O2 -fbounds-check FAIL: go.go-torture/execute/names-1.go execution, -O2 -fomit-frame-pointer -finline-functions FAIL: go.go-torture/execute/names-1.go execution, -O2 -fomit-frame-pointer -finline-functions -funroll-loops FAIL: go.go-torture/execute/names-1.go execution, -O3 -g FAIL: ./index0-out.go execution, -O0 -g -fno-var-tracking-assignments FAIL: go.test/test/235.go execution, -O2 -g FAIL: go.test/test/chan/sieve1.go execution, -O2 -g FAIL: go.test/test/chan/sieve2.go execution, -O2 -g FAIL: go.test/test/cmp.go execution, -O2 -g FAIL: go.test/test/complit.go execution, -O2 -g FAIL: go.test/test/ddd.go execution, -O2 -g FAIL: go.test/test/fixedbugs/bug187.go execution, -O2 -g FAIL: go.test/test/fixedbugs/bug204.go execution, -O2 -g FAIL: go.test/test/fixedbugs/bug447.go execution FAIL: go.test/test/fixedbugs/bug465.dir/b.go execution, -O2 -g FAIL: go.test/test/fixedbugs/bug483.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue10925.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue14553.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue15528.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue16095.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue19113.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue22881.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue27836.dir/Ã~Dfoo.go -O -I. (test for excess errors) FAIL: go.test/test/fixedbugs/issue27836.dir/Ã~Dmain.go -O -I. (test for excess errors) FAIL: go.test/test/fixedbugs/issue39505b.go execution, -O2 -g FAIL: go.test/test/fixedbugs/issue4909b.go execution FAIL: go.test/test/fixedbugs/issue5162.go execution FAIL: go.test/test/fixedbugs/issue9604b.go execution FAIL: go.test/test/ken/range.go execution, -O2 -g FAIL: go.test/test/slice3.go execution FAIL: go.test/test/stringrange.go execution, -O2 -g FAIL: go.test/test/utf.go execution, -O2 -g (also gotools and libgo fails)