OSDN Git Service

PR tree-optimization/22029 (and 22135)
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Jul 2005 11:45:56 +0000 (11:45 +0000)
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Jul 2005 11:45:56 +0000 (11:45 +0000)
        * tree-pretty-print.c (dump_generic_node): Check that the node is not
        a phi node before calling dump_vops.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101548 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-pretty-print.c

index ac9afeb..7f83475 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-03  Ira Rosen  <irar@il.ibm.com>
+
+       PR tree-optimization/22029 (and 22135)
+       * tree-pretty-print.c (dump_generic_node): Check that the node is not
+       a phi node before calling dump_vops.
+
 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * tree-dump.h (dump_string_field): Declare.
index 4fa0326..4d3719b 100644 (file)
@@ -267,7 +267,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
   if (TREE_CODE (node) != ERROR_MARK
       && is_gimple_stmt (node)
       && (flags & TDF_VOPS)
-      && stmt_ann (node))
+      && stmt_ann (node)
+      && TREE_CODE (node) != PHI_NODE)
     dump_vops (buffer, node, spc, flags);
 
   if (is_stmt && (flags & TDF_STMTADDR))