[Bug target/86340] GCC 8.1 produces broken code for m68k with optimization levels above -O1
mikpelinux at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 22 17:50:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list