https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106419
--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> --- I don't set --enable-default-pie anymore when configuring gcc, so here's the difference. Therefore, it stops ICEing if I add -fPIE or -fPIC when compiling the testcase. Conversely, could you please try adding -fno-PIE?