Patchwork [fortran,committed] Show ALLOCATABLE in components in dumps

login
register
mail settings
Submitter Thomas Koenig
Date Dec. 29, 2010, 9:35 p.m.
Message ID <1293658517.7204.2.camel@linux-fd1f.site>
Download mbox | patch
Permalink /patch/76949/
State New
Headers show

Comments

Thomas Koenig - Dec. 29, 2010, 9:35 p.m.
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.

Patch

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)