From ef271341a47f86329c2b20ef2ef03dff78d801ad Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Fri, 28 Feb 2014 00:24:20 +0100 Subject: [PATCH] re PR middle-end/60147 (ICE with -fdump-tree-original and NAMELIST) 2014-02-28 Tobias Burnus PR middle-end/60147 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle NAMELIST_DECL. From-SVN: r208209 --- gcc/ChangeLog | 6 ++++++ gcc/tree-pretty-print.c | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60e7d9e950bf..995957c44763 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-02-28 Tobias Burnus + + PR middle-end/60147 + * tree-pretty-print.c (dump_generic_node, print_declaration): Handle + NAMELIST_DECL. + 2014-02-27 H.J. Lu * doc/tm.texi.in (Condition Code Status): Update documention for diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 0595499ec25c..7ec4223d9e19 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -1390,6 +1390,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, case FIELD_DECL: case DEBUG_EXPR_DECL: case NAMESPACE_DECL: + case NAMELIST_DECL: dump_decl_name (buffer, node, flags); break; @@ -2686,6 +2687,14 @@ print_declaration (pretty_printer *buffer, tree t, int spc, int flags) { INDENT (spc); + if (TREE_CODE(t) == NAMELIST_DECL) + { + pp_string(buffer, "namelist "); + dump_decl_name (buffer, t, flags); + pp_semicolon (buffer); + return; + } + if (TREE_CODE (t) == TYPE_DECL) pp_string (buffer, "typedef ");