From 66c8f3a9ab0a44ee04865322a506d5253864013c Mon Sep 17 00:00:00 2001 From: amacleod Date: Wed, 3 May 2006 17:13:37 +0000 Subject: 2006-05-02 Andrew MacLeod PR tree-optimization/27381 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument, maintain the same immediate_use links. * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker node rather than segfaulting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113499 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-operands.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/tree-ssa-operands.c') diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 68613fe9564..3cd8c45aaf1 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -2513,10 +2513,13 @@ dump_immediate_uses_for (FILE *file, tree var) FOR_EACH_IMM_USE_FAST (use_p, iter, var) { - if (!is_gimple_reg (USE_FROM_PTR (use_p))) - print_generic_stmt (file, USE_STMT (use_p), TDF_VOPS); + if (use_p->stmt == NULL && use_p->use == NULL) + fprintf (file, "***end of stmt iterator marker***\n"); else - print_generic_stmt (file, USE_STMT (use_p), TDF_SLIM); + if (!is_gimple_reg (USE_FROM_PTR (use_p))) + print_generic_stmt (file, USE_STMT (use_p), TDF_VOPS); + else + print_generic_stmt (file, USE_STMT (use_p), TDF_SLIM); } fprintf(file, "\n"); } -- cgit v1.2.1