summaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2005-04-11 15:05:50 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2005-04-11 11:05:50 -0400
commit9fabf0d4627f91b28d61b153e84053be525365ef (patch)
tree3ef2ff01848d34cb99c543d718a73a3aaf91f9ec /gcc/tree-pretty-print.c
parentf5db779b2b87248590386d588a1f8c662169d081 (diff)
downloadgcc-9fabf0d4627f91b28d61b153e84053be525365ef.tar.gz
re PR tree-optimization/20920 (ICE with eh and VRP)
PR tree-optimization/20920 * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an SSA_NAME flows through an abnormal edge. * tree-vrp.c (infer_value_range): Ignore SSA names that flow through abnormal edges. (maybe_add_assert_expr): Likewise. PR tree-optimization/20920 * g++.dg/tree-ssa/pr20920.C: New test. From-SVN: r97971
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 598cc907819..5d230822a92 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -1416,6 +1416,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
dump_generic_node (buffer, SSA_NAME_VAR (node), spc, flags, false);
pp_string (buffer, "_");
pp_decimal_int (buffer, SSA_NAME_VERSION (node));
+ if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (node))
+ pp_string (buffer, "(ab)");
break;
case WITH_SIZE_EXPR: