https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71744
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38852 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38852&action=edit gcc7-pr71744.patch Untested patch for the old-style registry. But as long as glibc still takes a global lock it probably doesn't help that much.