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 | |
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')
-rw-r--r-- | gcc/fortran/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/fortran/dump-parse-tree.c | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 532a30b..34acfed 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +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. + 2011-06-02 Asher Langton <langton2@llnl.gov> PR fortran/49268 @@ -16,7 +22,7 @@ procedure statement. * parse.c ( decode_statement): Deal with whitespace around :: in gfc_match_modproc. - + 2011-05-31 Tobias Burnus <burnus@net-b.de> PR fortran/18918 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); |