https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123076
--- Comment #14 from Mikael Pettersson <mikpelinux at gmail dot com> --- (In reply to John Paul Adrian Glaubitz from comment #4) > (In reply to John Paul Adrian Glaubitz from comment #3) > > I can confirm that passing -fno-auto-inc-dec to GCC during build fixes this > > problem. > > > > I'll also test now whether the proposed patch from PR123853 fixes the > > problem as well. > > The patch does not seem to help. It still gets stuck here: The patch does fix the CPython hang as far as I can tell. I built a cross toolchain for m68k-linux-gnu, used that to cross-compile Python-3.14.5 for m68k (Python defaulted to -O3), make install to a scratch area, transferred the installation to m68k (Aranym VM), and continued the build there with the compileall.py step. The compileall.py step gets quite far but then hangs deterministically. Applying my patch from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123853#c18 to gcc before the build fixes the hang for me, both with gcc-15.2.0 and with gcc-15.3.0. I haven't yet done a gcc-15.3.0 native bootstrap followed by a python native build on on m68k as that will take a lot longer. Side-note: Python-3.14 dies immediately on m68k unless the gchead-alignment.diff patch from Debian's python-3.14 patch kit is applied. This is regardless of gcc version and is not a gcc bug.
