https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102876
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 51680 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51680&action=edit gcc12-pr102876-wip.patch WIP patch that adds the internal fns around dynamic initializers that could be optimized, but doesn't add the pass that would use these yet.