From: burnus Date: Mon, 6 Sep 2010 18:16:50 +0000 (+0000) Subject: 2010-09-06 Tobias Burnus X-Git-Tag: upstream/4.9.2~26852 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e590c2fde4a0cbefcdfb8c5791af5d1ac61c1d02;p=platform%2Fupstream%2Flinaro-gcc.git 2010-09-06 Tobias Burnus 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 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index e661b44..2d97608 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,10 @@ 2010-09-06 Tobias Burnus + PR fortran/45560 + * dump-parse-tree.c (gfc_debug_expr): New function. + +2010-09-06 Tobias Burnus + PR fortran/38282 * intrinsic.c (add_functions): Support IALL, IANY, IPARITY. (check_specific): Special case for those intrinsics. diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index 1a64910..3595518 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