Commit 3c7ac37e by Tobias Burnus Committed by Tobias Burnus

re PR fortran/45560 (debugging: Add EXPR pretty printer (gfc_debug_expr))

2010-09-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/45560
        * dump-parse-tree.c (gfc_debug_expr): New function.

From-SVN: r163928
parent a7529ed6
2010-09-06 Tobias Burnus <burnus@net-b.de> 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 PR fortran/38282
* intrinsic.c (add_functions): Support IALL, IANY, IPARITY. * intrinsic.c (add_functions): Support IALL, IANY, IPARITY.
(check_specific): Special case for those intrinsics. (check_specific): Special case for those intrinsics.
......
...@@ -49,6 +49,20 @@ static void show_code_node (int, gfc_code *); ...@@ -49,6 +49,20 @@ static void show_code_node (int, gfc_code *);
static void show_namespace (gfc_namespace *ns); 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. */ /* Do indentation for a specific level. */
static inline void static inline void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment