https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110422
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Martin Jambor <jamb...@gcc.gnu.org>: https://gcc.gnu.org/g:2b7204c52392c1c0da9c91a5feae0c44018a6f37 commit r13-8246-g2b7204c52392c1c0da9c91a5feae0c44018a6f37 Author: Martin Jambor <mjam...@suse.cz> Date: Wed Jan 24 20:35:00 2024 +0100 sra: Disqualify bases of operands of asm gotos PR 110422 shows that SRA can ICE assuming there is a single edge outgoing from a block terminated with an asm goto. We need that for BB-terminating statements so that any adjustments they make to the aggregates can be copied over to their replacements. Because we can't have that after ASM gotos, we need to punt. gcc/ChangeLog: 2024-01-17 Martin Jambor <mjam...@suse.cz> PR tree-optimization/110422 * tree-sra.cc (scan_function): Disqualify bases of operands of asm gotos. gcc/testsuite/ChangeLog: 2024-01-17 Martin Jambor <mjam...@suse.cz> PR tree-optimization/110422 * gcc.dg/torture/pr110422.c: New test. (cherry picked from commit 6764043e88a4208f7c69bf0ccd19ddc7a6016fb1)