https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870
--- Comment #19 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Sam James from comment #18) > (In reply to H.J. Lu from comment #17) > > Created attachment 61837 [details] > > A patch > > > > Please try this. No idea why it works for me. > > `./configure --with-tail-call-interp CFLAGS="-O2 -march=znver2 -ggdb3"` > works for me with that patch on trunk. Your 15 backport patch for preserve_none fails both with and without your tuning patch, though. I will spend a bit of time trying to get a testcase but the code is complex and I'm not optimistic I will get one. Ken Jin, do you have time to look? You know the code a lot better than me trying to learn CPython internals very quickly. Even a large standalone (single source file) executable testcase is really helpful. If not (which is fine), I'll slowly start hacking chunks out of it and pray.