https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117327
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org Status|UNCONFIRMED |NEW Summary|SPARC miscompile - branch |delay slot scheduling |past end of function |miscompiles function | |containing | |__builtin_unreachable Component|target |rtl-optimization Last reconfirmed| |2024-10-28 Ever confirmed|0 |1 --- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Confirmed as a delay slot scheduling issue, so -fno-delayed-branch is a workaround (although the questionable branch is still present in the assembly, but only executed if the unreachable path is reached).