summaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.c
diff options
context:
space:
mode:
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-31 19:13:13 +0000
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-31 19:13:13 +0000
commit4ac968e7dd021116ee8f81f9a2063a32f6a2c61a (patch)
tree05fa8bedfa01cd41411713a530eb7ef6c57e85ae /gcc/fortran/dump-parse-tree.c
parent4cc3facbd10d83ab33443152817cac53296e577b (diff)
2011-01-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/47519 * trans-stmt.c (gfc_trans_allocate): Improve handling of deferred character lengths with SOURCE. * iresolve.c (gfc_resolve_repeat): Calculate character length from source length and ncopies. * dump-parse-tree.c (show_code_node): Show MOLD and SOURCE expressions for ALLOCATE. 2011-01-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/47519 * gfortran.dg/allocate_deferred_char_scalar_2.f03: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169444 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r--gcc/fortran/dump-parse-tree.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index 24e9ea5d1d58..424feb1e68e6 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -1605,6 +1605,15 @@ show_code_node (int level, gfc_code *c)
show_expr (c->expr2);
}
+ if (c->expr3)
+ {
+ if (c->expr3->mold)
+ fputs (" MOLD=", dumpfile);
+ else
+ fputs (" SOURCE=", dumpfile);
+ show_expr (c->expr3);
+ }
+
for (a = c->ext.alloc.list; a; a = a->next)
{
fputc (' ', dumpfile);