https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119376
--- Comment #27 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #24) > MpUnknownEnumFallback also fails still because we didn't optimize away this: > ``` > <bb 35> [count: 0]: > <L12>: > goto <bb 39>; [100.00%] > > ... > > <bb 38> [count: 0]: > <L10>: > > <bb 39> [count: 0]: > <L7>: > resx 1 > ``` Filed as PR 119491 . With removing the spill hack (just the inline-asm), the addition of the cleanup eh pass added and -fno-ipa-vrp, GCC is able to compile NOW the original testcase.