https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97822
--- Comment #18 from Uroš Bizjak <ubizjak at gmail dot com> --- Some more analysis of this ICE: The compiler ICEs in choose_baseaddr because it doesn't get base register: a) SP is not valid at this point because it is disabled due to missing REG_CFA_EXPRESSION support for SEH b) Apparently FP is also not valid at this point, see Comment #15. c) There is no DRAP available for some reason. The ICE can be avoided with -fno-asynchronous-unwind-tables which makes SP valid or by using mpreferred-stack-boundary=4 which makes FP valid. The option c) is not available for some reason, it should be investigated if it can be used in this case. Other than that, -O2 compiles the testcase OK.
