https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119214
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I guess the options are pretend that FOO is an inlined call for debug info purposes (so DW_TAG_subprogram is created for it and the statements belonging are wrapped in DW_TAG_inlined_subroutine). That would be a matter of emitting an abstract instance for the "function" and tweaking relevant BLOCKs such that it appears the same as inlined functions. Perhaps with some extension attribute to mark the DW_TAG_subprogram as COBOL division. Or talk to DWARF committee to add some feature for it, see https://dwarfstd.org/comment.html