re PR fortran/90813 (gfortran.dg/proc_ptr_51.f90 fails (SIGSEGV) after 272084)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 29 Jul 2019 17:45:24 +0000 (17:45 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 29 Jul 2019 17:45:24 +0000 (17:45 +0000)
commit5c6aa9a8919cbf0dcf3c375f51012720bfb5f3a1
treecd61bcbec9ac2df1a286648ec164ee57268d04c9
parent937337890108676b3588d77bd704927d349db71b
re PR fortran/90813 (gfortran.dg/proc_ptr_51.f90 fails (SIGSEGV) after 272084)

2019-07-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/90813
* dump-parse-tree.c (show_global_symbol): New function.
(gfc_dump_global_symbols): New function.
* gfortran.h (gfc_traverse_gsymbol): Add prototype.
(gfc_dump_global_symbols): Likewise.
* invoke.texi: Document -fdump-fortran-global.
* lang.opt: Add -fdump-fortran-global.
* parse.c (gfc_parse_file): Handle flag_dump_fortran_global.
* symbol.c (gfc_traverse_gsymbol): New function.
* trans-decl.c (sym_identifier): New function.
(mangled_identifier): New function, doing most of the work
of gfc_sym_mangled_identifier.
(gfc_sym_mangled_identifier): Use mangled_identifier.  Add mangled
identifier to global symbol table.
(get_proc_pointer_decl): Use backend decl from global identifier
if present.

From-SVN: r273880
gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c
gcc/fortran/gfortran.h
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/parse.c
gcc/fortran/symbol.c
gcc/fortran/trans-decl.c