aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.c
diff options
context:
space:
mode:
authorSteven G. Kargl <kargl@gcc.gnu.org>2009-05-14 22:21:40 +0000
committerSteven G. Kargl <kargl@gcc.gnu.org>2009-05-14 22:21:40 +0000
commit0511ddbb337da0007678136582a39fc769e140ab (patch)
tree26a7ad57c404aa27a6e6ee6756f285a13f643793 /gcc/fortran/dump-parse-tree.c
parent09639a839744ebc53f6b221a8a3b57dbb9993f64 (diff)
downloadgcc-0511ddbb337da0007678136582a39fc769e140ab.zip
gcc-0511ddbb337da0007678136582a39fc769e140ab.tar.gz
gcc-0511ddbb337da0007678136582a39fc769e140ab.tar.bz2
dump-parse-tree.c (show_code_node): Add ERRMSG to the dumping of allocate and deallocate statements.
2009-05-14 Steven G. Kargl <kargl@gcc.gnu.org> * dump-parse-tree.c (show_code_node): Add ERRMSG to the dumping of allocate and deallocate statements. From-SVN: r147545
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r--gcc/fortran/dump-parse-tree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index 26a8e08..f6de8e8 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -1420,6 +1420,12 @@ show_code_node (int level, gfc_code *c)
show_expr (c->expr1);
}
+ if (c->expr2)
+ {
+ fputs (" ERRMSG=", dumpfile);
+ show_expr (c->expr2);
+ }
+
for (a = c->ext.alloc_list; a; a = a->next)
{
fputc (' ', dumpfile);
@@ -1436,6 +1442,12 @@ show_code_node (int level, gfc_code *c)
show_expr (c->expr1);
}
+ if (c->expr2)
+ {
+ fputs (" ERRMSG=", dumpfile);
+ show_expr (c->expr2);
+ }
+
for (a = c->ext.alloc_list; a; a = a->next)
{
fputc (' ', dumpfile);