https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102708
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- Actually, it prints the line number at the call site. Thus, there is probably no need for adding the name of callee. However, related to the fsym/proc_name passing: Currently, the callers in gfc_conv_procedure_call do not make use of the avoid-copy-in feature by not passing the (add) contiguous (check) = true flag to gfc_conv_subref_array_arg. There are some testcase which check that the copyin does not happen when being contiguous, but I think those are not used for dummy arguments that are (CONTIGUOUS) assumed-shape/assumed-rank arrays. Side note: To get that working, it requires the gfc_conv_subref_array_arg changes of the patch at https://gcc.gnu.org/pipermail/gcc-patches/2021-October/581575.html which might be the reason for not doing it currently. * * * Another observation, which might be unrelated or related: TRANSFORM can be implemented by just swapping the first and second dimension (see trans-intrinsic.s + trans-array.c, search for ISYM_TRANSFORM). Currently, GCC for a call makes it contiguous – which it could be also transferred as is (noncontiguous). I am not sure what's better, though. Testcase: gfortran.dg/c-interop/fc-descriptor-7.f90 also part of the patch https://gcc.gnu.org/pipermail/gcc-patches/2021-October/581575.html Search for the comments regarding the implementation choice. As testing shows, calling a Fortran procedure does the copy in (as mentioned) but with my patch, calling a BIND(C) procedure passes the array as noncontiguous array. Thus, I wonder whether it is also related to the gfc_conv_subref_array_arg. * * * gfc_conv_subref_array_arg: While the above mentioned patch adds support for a contiguous check with descriptors, I lack an optional + contiguous check testcase. However, that can only be added once gfc_conv_subref_array_arg is called with contiguous=true - or in any other way with type = descriptor type.