aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2006-05-03 17:13:37 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2006-05-03 17:13:37 +0000
commitafd83fe4394ec1ad673e4930573eac6e64a11a01 (patch)
tree667bf75460841ac25534c9906889dabd781ce40d /gcc/tree-ssa-operands.c
parent693d710f2ad03341b24d45d1b2ab75533d67687e (diff)
downloadgcc-afd83fe4394ec1ad673e4930573eac6e64a11a01.zip
gcc-afd83fe4394ec1ad673e4930573eac6e64a11a01.tar.gz
gcc-afd83fe4394ec1ad673e4930573eac6e64a11a01.tar.bz2
re PR tree-optimization/27381 (ice on valid code with -O)
2006-05-02 Andrew MacLeod <amacleod@redhat.com> 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. From-SVN: r113499
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 68613fe..3cd8c45 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");
}