https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122010
--- Comment #4 from Thorsten Otto <ad...@tho-otto.de> --- Another note: the m68k output above was from gcc 15.2.0. gcc 13.2.1 for m68k has the same bug and optimizes the call away (both with -O2 and -Os, but not with -O1)