https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98959
--- Comment #15 from Peter Bergner <bergner at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #10) > The important difference from my auto-host.h to your auto-host.h which > causes this ICE is that you don't have HAVE_LD_LARGE_TOC defined. > Manually commenting it out makes the ICE reproduceable. FYI, given HAVE_LD_LARGE_TOC controls the -mcmodel= default, I tried using a normal build (ie, did not #undef HAVE_LD_LARGE_TOC in auto-host.h) and was able to recreate the ICE by using the options: -fno-schedule-insns -O2 -mcmodel=small