diff options
author | Andreas Schmidt <andreas.schmidt.42@gmx.net> | 2011-06-05 18:48:11 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2011-06-05 18:48:11 +0000 |
commit | 142f5e4acdce0a04f2619784ddf54ff924082bbc (patch) | |
tree | 2866e748e083e5c5219df5f933bbe581d811a0cd /gcc/fortran/dump-parse-tree.c | |
parent | 67f8f44952324f3eb6ae564a696b8ee04efccccf (diff) | |
download | gcc-142f5e4acdce0a04f2619784ddf54ff924082bbc.zip gcc-142f5e4acdce0a04f2619784ddf54ff924082bbc.tar.gz gcc-142f5e4acdce0a04f2619784ddf54ff924082bbc.tar.bz2 |
dump-parse-tree.c (show_symbol): Don't dump namespace for ENTRY to avoid infinite recursion.
2011-06-05 Andreas Schmidt <andreas.schmidt.42@gmx.net>
Thomas Koenig <tkoenig@gcc.gnu.org>
* dump-parse-tree.c (show_symbol): Don't dump namespace
for ENTRY to avoid infinite recursion.
Co-Authored-By: Thomas Koenig <tkoenig@gcc.gnu.org>
From-SVN: r174659
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r-- | gcc/fortran/dump-parse-tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index c6be074..c807062 100644 --- a/gcc/fortran/dump-parse-tree.c +++ b/gcc/fortran/dump-parse-tree.c @@ -893,7 +893,8 @@ show_symbol (gfc_symbol *sym) } if (sym->formal_ns && (sym->formal_ns->proc_name != sym) - && sym->attr.proc != PROC_ST_FUNCTION) + && sym->attr.proc != PROC_ST_FUNCTION + && !sym->attr.entry) { show_indent (); fputs ("Formal namespace", dumpfile); |