From: Jason Merrill Date: Wed, 25 May 2011 19:52:18 +0000 (-0400) Subject: print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f03a54024372021a572dd23893982ef2ba0e941e;p=gcc.git print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED. * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED. * cp/ptree.c (cxx_print_xnode): Handle ARGUMENT_PACK_SELECT. From-SVN: r174230 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a1da8c1e927..da20d12827a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-05-25 Jason Merrill + + * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED. + 2011-05-25 Uros Bizjak * config/i386/sse.md (*_maskcmp3_comm): New pattern. diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 204fea6e729..c0677ccf55d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2011-05-25 Jason Merrill + * ptree.c (cxx_print_xnode): Handle ARGUMENT_PACK_SELECT. + PR c++/45698 * pt.c (dependent_template_arg_p): See through ARGUMENT_PACK_SELECT. diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index a4c3ed5ed0c..5c9626e7689 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -221,6 +221,12 @@ cxx_print_xnode (FILE *file, tree node, int indent) fprintf (file, "pending_template"); } break; + case ARGUMENT_PACK_SELECT: + print_node (file, "pack", ARGUMENT_PACK_SELECT_FROM_PACK (node), + indent+4); + indent_to (file, indent + 3); + fprintf (file, "index %d", ARGUMENT_PACK_SELECT_INDEX (node)); + break; default: break; } diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 3b5edebed62..58c96137934 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -321,7 +321,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent) if (indent <= 4) print_node_brief (file, "type", TREE_TYPE (node), indent + 4); } - else + else if (CODE_CONTAINS_STRUCT (code, TS_TYPED)) { print_node (file, "type", TREE_TYPE (node), indent + 4); if (TREE_TYPE (node))