https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127416
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:6967bd6c9a0be06dfa9ad3b160701e862fe2baea commit r17-5199-g6967bd6c9a0be06dfa9ad3b160701e862fe2baea Author: From: Jonas Hansen <[email protected]> Date: Wed Oct 14 07:28:06 2026 -0600 [PATCH v2 2/2] testsuite: Keep character-array and enum DSE coverage [PR127416] From: Jonas Hansen <[email protected]> Retain the original character-array program in ssa-dse-1.C and check that DSE removes the whole-object clear overwritten by the string assignment, including its implicit trailing zeros. Move the enum variant into ssa-dse-4.C with the original partial-DSE assertion. Tested on x86_64-pc-linux-gnu with 350 expected passes and three unsupported cases in the DSE and related initialization regression selection. Both tests also pass all four compile/dump checks for arm-none-eabi Cortex-M0. The new character-array assertion fails with the saved pre-follow-up compilers, and disabling partial DSE makes the enum assertion fail on both targets. gcc/testsuite/ChangeLog: PR tree-optimization/127416 * g++.dg/tree-ssa/ssa-dse-1.C (byte): Remove enum. (fixbuf): Restore char buffer elements. Update the dump assertion to check deletion of the redundant whole-object clear. * g++.dg/tree-ssa/ssa-dse-4.C: New test preserving the enum variant and partial-DSE assertion. Signed-off-by: Jonas Hansen <[email protected]>
