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

--- Comment #7 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> ---
The original cases have over 65 long call cascades that take different small
arrays to be packed.  Because of geometric time growth for every next repeated
call, the -flto -O2 is unusable in these specific cases.
I think I found a workaround after investigating f951 internals to add support
for NOINLINE attribute in form of:
!GCC$ ATTRIBUTES noinline :: foo
It works with LTO and might be useful for other issues.  I'll post a patch with
feature request in gfortran mailing list after some testing.

If the pr is not reproducible it can be closed as INVALID, since it might be a
host software configuration specific issue.

Reply via email to