https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108687
--- Comment #8 from Stefan Schulze Frielinghaus <stefansf at linux dot ibm.com> --- I came up with a cross compiler where I can reproduce it: FROM fedora:37 RUN dnf -y upgrade \ && dnf -y install 'dnf-command(builddep)' \ && dnf -y builddep gcc \ && dnf -y install binutils-s390x-linux-gnu git \ && dnf clean metadata RUN git clone --depth 1 https://gcc.gnu.org/git/gcc.git \ && mkdir /build \ && cd /build \ && /gcc/configure --target=s390x-linux-gnu \ --enable-languages=c \ --disable-nls \ --without-headers \ --disable-multilib \ && make -j$(nproc) all-gcc \ && make install-gcc Running inside the container $ /usr/local/bin/s390x-linux-gnu-gcc -O3 -march=z13 -c t.c does not terminate for me. Hope this makes debugging easier. If you need anything else just let me know.