https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108828
Bug ID: 108828 Summary: ivopts silencing gcc.dg/Wuse-after-free-2.c:115 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: hp at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: cris-elf Source from r13-5978-g4f5a1198065d. Running the test-suite for a cross to cris-elf on x86_64-pc-linux-gnu shows among other differences for cris-elf: Running /x/gcc/gcc/testsuite/gcc.dg/dg.exp ... FAIL: gcc.dg/Wuse-after-free-2.c (test for warnings, line 115) FAIL: gcc.dg/Wuse-after-free-2.c (test for warnings, line 116) Diffing tree dumps from -fdump-tree-all-all shows a suspicious difference in the "180t.ivopts" dump compared to that of the native run; for cris-elf, IIUC some temporary object is introduced that causes dissociation with the pointer...or something. Anyway, "-fno-ivopts" makes the warning appear for cris-elf. I don't see this test-suite-failure for recent reports to gcc-testresults@ for other targets (pru-unknown-elf, arm-unknown-linux-gnueabi, powerpc64le-unknown-linux-gnu, aarch64-suse-linux-gnu, s390x-ibm-linux-gnu, powerpc-ibm-aix7.2.5.0). The test has failed since it's introduction; it's not a regression.