https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118615
--- Comment #22 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 60784 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60784&action=edit First step at reducing the testcase I did: git cherry-pick 3c67a0fa1dd39a3378deb854a7fef0ff7fe38004 First and then built a cross compiler for aarch64-linux-gnu [apinski@xeond2 gcc]$ ./xgcc -B. -O2 -g -fcompare-debug -fno-exceptions -fno-rtti -S t.cc -fschedule-insns xgcc: error: t.cc: ‘-fcompare-debug’ failure (length)