Debugging and PR87352
Thomas Koenig
tkoenig@netcologne.de
Sun Mar 24 18:40:00 GMT 2019
Hi Jeremy,
> As I've hit a number of gfortran bugs (PR87542 and probably PR56471 when
> I tried to workaround it), I thought I would dig into the source code of
> gfortran. It's quite difficult to debug given the complex structures
> which are passed around. Are there any functions to print some of the
> gfc_ structures, e.g. gfc_symbol, gfc_expr, gfc_namespace, gfc_code...?
For just this case, there is a short article on the gcc wiki:
https://gcc.gnu.org/wiki/GFortranHacking
If you would like to have additional functions for debugging
gfortran data structures, just give us a heads-up - those are
quite easy to add, and do not impact user code.
Hope this helps, please do not hesitate to ask again if you need
anything.
(If you're developing a patch, have you considered getting a copyright
assignment? We need that to incorporate "large" changes, but there
is of course room for interpretation of what that means).
Regards
Thomas
More information about the Fortran
mailing list