https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88714
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Thanks. So, can you for that sort.i do -da -fdump-tree-all when compiled both with stage1 and stage2 and see where things start to differ? Or, try to change either: STAGE1_TFLAGS += -fno-checking STAGE2_CFLAGS += -fno-checking STAGE2_TFLAGS += -fno-checking in toplevel Makefile.in to -fchecking=1 or STAGE3_CFLAGS += -fchecking=1 STAGE3_TFLAGS += -fchecking=1 after it to -fno-checking and see if the comparison failures go away. That would verify your -fno-checking idea. If that proves to be true, where sort.i.* starts to differ could hint on what TU from stage1 or stage2 could be rebuilt with -fno-checking or -fchecking=1 to see if the difference goes away. Or do a binary search among *.o files. Sorry I can't help more, but this really isn't debuggable with cross-compilers.