https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118097
--- Comment #21 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to David Binderman from comment #20) > From the See also bug report, # 118138, > I tried out -fno-inline and, for the two test cases here, > the problem seemed to go away. Try -fno-ipa-cp