https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103585
--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> --- https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586644.html improves modref so it is almost able to remove the unnecesary stores to array descriptors. Unforutnately to elinate them one needs to handle the case that calling unknown function is safe WRT all non-escaping values (since passing them to the function makes them escape) that is sadly broken by Fortran FE incorrectly annotating functions calling GOMP_parallel.