OSDN Git Service

2010-09-06 Tobias Burnus <burnus@net-b.de>
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Sep 2010 18:16:50 +0000 (18:16 +0000)
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Sep 2010 18:16:50 +0000 (18:16 +0000)
        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

gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c

index e661b44..2d97608 100644 (file)
@@ -1,5 +1,10 @@
 2010-09-06  Tobias Burnus  <burnus@net-b.de>
 
+       PR fortran/45560
+       * dump-parse-tree.c (gfc_debug_expr): New function.
+
+2010-09-06  Tobias Burnus  <burnus@net-b.de>
+
        PR fortran/38282
        * intrinsic.c (add_functions): Support IALL, IANY, IPARITY.
        (check_specific): Special case for those intrinsics.
index 1a64910..3595518 100644 (file)
@@ -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