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 ");