From f581a987e3d60ad86aafa2a49b72e09b5f9cb356 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 24 Aug 2012 22:29:00 -0400 Subject: print-tree.c (print_node): Don't check TREE_LANG_FLAG_* on TREE_VEC or SSA_NAME. * print-tree.c (print_node): Don't check TREE_LANG_FLAG_* on TREE_VEC or SSA_NAME. From-SVN: r190663 --- gcc/ChangeLog | 5 +++++ gcc/print-tree.c | 32 ++++++++++++++++++-------------- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f160b8f..c1b24ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-08-24 Jason Merrill + + * print-tree.c (print_node): Don't check TREE_LANG_FLAG_* + on TREE_VEC or SSA_NAME. + 2012-08-24 Jakub Jelinek PR c/54363 diff --git a/gcc/print-tree.c b/gcc/print-tree.c index d40fb08..27fb72f 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -363,20 +363,24 @@ print_node (FILE *file, const char *prefix, tree node, int indent) fputs (" deprecated", file); if (TREE_VISITED (node)) fputs (" visited", file); - if (TREE_LANG_FLAG_0 (node)) - fputs (" tree_0", file); - if (TREE_LANG_FLAG_1 (node)) - fputs (" tree_1", file); - if (TREE_LANG_FLAG_2 (node)) - fputs (" tree_2", file); - if (TREE_LANG_FLAG_3 (node)) - fputs (" tree_3", file); - if (TREE_LANG_FLAG_4 (node)) - fputs (" tree_4", file); - if (TREE_LANG_FLAG_5 (node)) - fputs (" tree_5", file); - if (TREE_LANG_FLAG_6 (node)) - fputs (" tree_6", file); + + if (code != TREE_VEC && code != SSA_NAME) + { + if (TREE_LANG_FLAG_0 (node)) + fputs (" tree_0", file); + if (TREE_LANG_FLAG_1 (node)) + fputs (" tree_1", file); + if (TREE_LANG_FLAG_2 (node)) + fputs (" tree_2", file); + if (TREE_LANG_FLAG_3 (node)) + fputs (" tree_3", file); + if (TREE_LANG_FLAG_4 (node)) + fputs (" tree_4", file); + if (TREE_LANG_FLAG_5 (node)) + fputs (" tree_5", file); + if (TREE_LANG_FLAG_6 (node)) + fputs (" tree_6", file); + } /* DECL_ nodes have additional attributes. */ -- cgit v1.1