]> git.ipfire.org Git - thirdparty/gcc.git/commit
sra: Disqualify bases of operands of asm gotos
authorMartin Jambor <mjambor@suse.cz>
Thu, 18 Jan 2024 13:24:15 +0000 (14:24 +0100)
committerMartin Jambor <mjambor@suse.cz>
Thu, 18 Jan 2024 13:25:30 +0000 (14:25 +0100)
commit6764043e88a4208f7c69bf0ccd19ddc7a6016fb1
tree2ead8c77a846d0861feb95f088c82b4381a1e0b2
parent895a2138265fd9cace3588404523122f73626d2a
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  <mjambor@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  <mjambor@suse.cz>

PR tree-optimization/110422
* gcc.dg/torture/pr110422.c: New test.
gcc/testsuite/gcc.dg/torture/pr110422.c [new file with mode: 0644]
gcc/tree-sra.cc