https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104407
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #12) > Created attachment 52362 [details] > gcc12-pr104407.patch > > This works for me. Yes. Note we're throwing away the result anyway but the comment at the caller hints at the expansion being necessary because that triggers mangling. Now, with your change we won't ever do any mangling and thus we can instead avoid calling the function at all?