https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117474

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #6 from anlauf at gcc dot gnu.org ---
(In reply to Rimvydas (RJ) from comment #5)
> Added initial hand-reduced reproducer.  It took quite a few iterations to
> carefully cut out many small parts of original case while trying to preserve
> original observed behavior of memory and walltime usage.
> Memory usage during 'parse' stage when compiling passtest.F90 is in kbytes.
> Size of produced phys_base_mod.mod module for import in passtest.F90 is in
> bytes.

OK, this is really a memory hog.

Replacing the many "use phys_base_mod, only : phys_base" by a simple

  import

in the interfaces after putting

  use phys_base_mod, only : phys_base

at the very top gives a tremendous speed-up.  Can you try that as a workaround?

As an aside: is this automatically generated code?

Reply via email to