aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gcc.gnu.org>2014-06-24 00:38:30 +0930
committerAlan Modra <amodra@gcc.gnu.org>2014-06-24 00:38:30 +0930
commit82bb92454f99f40d02ebedb6088e403b6809dc6b (patch)
treefdf2654289f3986d510ec9eb187bc603447517d8 /gcc/tree-vrp.c
parent096c59be14c385b96c186dd1a1b45f95d80e102e (diff)
downloadgcc-82bb92454f99f40d02ebedb6088e403b6809dc6b.zip
gcc-82bb92454f99f40d02ebedb6088e403b6809dc6b.tar.gz
gcc-82bb92454f99f40d02ebedb6088e403b6809dc6b.tar.bz2
re PR bootstrap/61583 (stage2 and stage3 compare failure due to value range loss)
gcc/ PR bootstrap/61583 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable to zero on debug statements. gcc/testsuite/ * gcc.dg/pr61583.c: New. From-SVN: r211897
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r--gcc/tree-vrp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index b657546..3d0916d 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -6523,8 +6523,9 @@ remove_range_assertions (void)
}
else
{
+ if (!is_gimple_debug (gsi_stmt (si)))
+ is_unreachable = 0;
gsi_next (&si);
- is_unreachable = 0;
}
}
}