diff options
author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2006-05-17 14:06:42 +0200 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2006-05-17 12:06:42 +0000 |
commit | bfaacea7f5448103e422119bd0f17b475f79dcd2 (patch) | |
tree | 8b1b2930c4c8f856a7784975b076b853b8067e1c /gcc | |
parent | e5db35150e9377adf263374bccb2a3f68af5d7ca (diff) | |
download | gcc-bfaacea7f5448103e422119bd0f17b475f79dcd2.zip gcc-bfaacea7f5448103e422119bd0f17b475f79dcd2.tar.gz gcc-bfaacea7f5448103e422119bd0f17b475f79dcd2.tar.bz2 |
re PR fortran/27320 (ICE with -fdump-parse-tree after error)
PR fortran/27320
* dump-parse-tree.c (gfc_show_code_node): Try harder to find the
called procedure name.
From-SVN: r113855
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/dump-parse-tree.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2e4f8fb..547a85f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2006-05-17 Francois-Xavier Coudert <coudert@clipper.ens.fr> + + PR fortran/27320 + * dump-parse-tree.c (gfc_show_code_node): Try harder to find the + called procedure name. + 2006-05-17 Jakub Jelinek <jakub@redhat.com> PR middle-end/27415 diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index 06322d4..adec12f 100644 --- a/gcc/fortran/dump-parse-tree.c +++ b/gcc/fortran/dump-parse-tree.c @@ -1060,7 +1060,13 @@ gfc_show_code_node (int level, gfc_code * c) break; case EXEC_CALL: - gfc_status ("CALL %s ", c->resolved_sym->name); + if (c->resolved_sym) + gfc_status ("CALL %s ", c->resolved_sym->name); + else if (c->symtree) + gfc_status ("CALL %s ", c->symtree->name); + else + gfc_status ("CALL ?? "); + gfc_show_actual_arglist (c->ext.actual); break; |