[patch, Fortran, committed] Fix a crash with a developer's option

Thomas Koenig tkoenig@netcologne.de
Sun Jun 14 15:40:42 GMT 2020


Committed as obvious, simple and risk-free after checking
that it still compiles.

It does not fix the PR in question, it it just something that
was noted in one of the comments.

Regards

	Thomas

Avoid crash when global symbol table is empty with -fdump-fortran-global.

This just avoids a crash with -fdump-fortran-global when the
global symbol table is empty.  This is strictly a developer's
option, no user impact.

gcc/fortran/ChangeLog:

2020-06-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/42122
	* dump-parse-tree.c (gfc_dump_global_symbols):  If the symroot is
	empty, just output "empty".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200614/b7b141cc/attachment.bin>


More information about the Gcc-patches mailing list