summaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.c
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-06 18:16:50 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-06 18:16:50 +0000
commite590c2fde4a0cbefcdfb8c5791af5d1ac61c1d02 (patch)
tree250058453a71cb6ae52936c1503f47e673bf9022 /gcc/fortran/dump-parse-tree.c
parent704a43a367f7f265129c62fb1c6f5fb2f72dcb16 (diff)
2010-09-06 Tobias Burnus <burnus@net-b.de>
PR fortran/45560 * dump-parse-tree.c (gfc_debug_expr): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163928 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r--gcc/fortran/dump-parse-tree.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index 1a649106f15e..3595518dc895 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -49,6 +49,20 @@ static void show_code_node (int, gfc_code *);
static void show_namespace (gfc_namespace *ns);
+/* Allow dumping of an expression in the debugger. */
+void gfc_debug_expr (gfc_expr *);
+
+void
+gfc_debug_expr (gfc_expr *e)
+{
+ FILE *tmp = dumpfile;
+ dumpfile = stdout;
+ show_expr (e);
+ fputc ('\n', dumpfile);
+ dumpfile = tmp;
+}
+
+
/* Do indentation for a specific level. */
static inline void