https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86340
Mikael Pettersson <mikpelinux at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #4 from Mikael Pettersson <mikpelinux at gmail dot com> --- Created attachment 44737 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44737&action=edit reduced test case With this reduced test case I get the same code as for the unreduced one, with a cross to m68k-linux with options -fomit-frame-pointer -Os -Wall. The test case receives parameters via hard registers in a way that looks questionable to me. Changing it to normal parameter passing avoids the wrong code.