This is a bit long, so bear with me. Bottom line here is a question whether there is an issue with the XRF file that can be fixed/should be fixed, or if this is what you get (which, errors or not, can be very useful).
I was using the XRF file produced by the compiler, and it occurred to be that I could process the file into a different form. Rather than the report which is 'Module/Function/Routine uses: xxxxxx' I could gather all the XRF files together and produce a 'Where xxxxxx is Used' report/file. I find that more useful if I am making a change at a lower level and need to make sure I haven't forgotten something about the using program
I took one of my larger routines and looked at what the report contained. I noticed certain defining features. So I coded a 'scanner' to look for those features. Reviewing the output, I discovered certain features that I had seen/vetted in the original file were not presented the same way in other files. So, I thought I'd ask the question: What should I be seeing?
While the line numbers assigned are some sort of internal number (don't match 'actual' numbers), they are not always present. Specifically, the entry for 'SUBROUTINE XXXXX' should show a line number where it was used. This is inconsistent.
Similarly, with functions. An interesting side note is that a function declared as EXTERNAL in an include file will show a tilde by the line number, what is sometimes missing is the list of line number where the function is actually used. So, having an INCLUDE that defines a BUNCH of EXTERNAL routines will have a really big list of routines most of which are not referenced in the routine that will only show they were defined, but several of them will also show that they were used (a line number by itself) when they were not.
I have lots of XRF files that have one or all (there are a couple more things) of these discrepancies, and can provide them for review if that would be helpful.
And, I may be the only one trying to use this, particularly in this way. In which case, I can try something else.