This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, fortran, committed] Show ALLOCATABLE in components in dumps
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Dec 2010 22:35:17 +0100
- Subject: [patch, fortran, committed] Show ALLOCATABLE in components in dumps
Hello world,
a really obvious patch, applied as revision 168324.
Thomas
2010-12-29 Thomas Koenig <tkoenig@gcc.gnu.org>
* dump_parse_tree.c (show_components): Show
ALLOCATABLE.
Index: dump-parse-tree.c
===================================================================
--- dump-parse-tree.c (Revision 168276)
+++ dump-parse-tree.c (Arbeitskopie)
@@ -694,6 +694,8 @@ show_components (gfc_symbol *sym)
{
fprintf (dumpfile, "(%s ", c->name);
show_typespec (&c->ts);
+ if (c->attr.allocatable)
+ fputs (" ALLOCATABLE", dumpfile);
if (c->attr.pointer)
fputs (" POINTER", dumpfile);
if (c->attr.proc_pointer)