dump-parse-tree.c (show_symbol): Don't dump namespace for ENTRY to avoid infinite...
authorAndreas Schmidt <andreas.schmidt.42@gmx.net>
Sun, 5 Jun 2011 18:48:11 +0000 (18:48 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 5 Jun 2011 18:48:11 +0000 (18:48 +0000)
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

gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c

index 532a30b..34acfed 100644 (file)
@@ -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
index c6be074..c807062 100644 (file)
@@ -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);