https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108523
--- Comment #4 from David Binderman <dcb314 at hotmail dot com> --- Seems to run fine in about 0.1 seconds with g:4d08c674b0114622, dated 20221129. That seems to be about 533 commits. I'll have a go at a git bisect.