aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-01-09 10:14:29 +0100
committerEric Botcazou <ebotcazou@adacore.com>2024-01-09 10:24:57 +0100
commitf34141730266600b615b91d563a85a0b60223b3e (patch)
treecbbfc9a0a6f21b1c6b46e35ed1d7963494584c4e /gcc/cp/constexpr.cc
parentf2e967e0257bc8188840df236595e7218b6bf748 (diff)
downloadgcc-f34141730266600b615b91d563a85a0b60223b3e.zip
gcc-f34141730266600b615b91d563a85a0b60223b3e.tar.gz
gcc-f34141730266600b615b91d563a85a0b60223b3e.tar.bz2
Fix segfault during delay slot scheduling pass
This is a small regression present on the mainline and 13 branch, although the underlying problem has probably been there for ages, in the form of a segfault during the delay slot scheduling pass, for a function that falls through to exit without any instruction generated for the end of function. gcc/ PR rtl-optimization/113140 * reorg.cc (fill_slots_from_thread): If we are to branch after the last instruction of the function, create an end label. gcc/testsuite/ * g++.dg/opt/delay-slot-2.C: New test.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions