https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109265
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think one way is to include all the needed modules by hand into the same *.f90 source (for each module, find in which source file it is defined and copy the module ... end module stuff) and repeat until you have it all. Another one is try multi-file delta or the script from https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction