https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112782
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- My bet is the code for -mfix-r5900 is not expecting the extra labels that is produced for debuging ... Anyways as I mentioned if -mfix-r5900 is the issue then it is a gas issue.