https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143
--- Comment #11 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to James Clarke from comment #10) > (In reply to Segher Boessenkool from comment #9) > > What flags does it need? I can't get it to fail. > > Just -O2 -fPIC, at least with 7.2.0. That is, if your default configuration is sh4-linux. Otherwise you might need to specify all the parameters. AFAIR it's -ml -m4 -matomic-model=soft-gusa