https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119136
--- Comment #24 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #23) Jakub, if I understand you correctly, then this can be done as part of the lock if the support is there, but that is not guaranteed for all systems that gfortran runs on. Hmm... how do we want to do this?
