summaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-01 14:00:09 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-01 14:00:09 +0000
commit052f71a4e1f29b2be09b72aeb96da65cd19835a2 (patch)
treeba9321a7c633c51156a2da0b2b0d781d14821c27 /gcc/tree-vrp.c
parentd461f9a92edee6820914016dd5b179d967f19b60 (diff)
downloadgcc-052f71a4e1f29b2be09b72aeb96da65cd19835a2.tar.gz
PR 24141
* tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a non-null range as a last resort. testsuite/ PR 24141 * gcc.c-torture/execute/pr24141.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104859 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r--gcc/tree-vrp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 21e6cf6d100..0e5ea09b5d5 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -3439,7 +3439,14 @@ no_meet:
&& !range_includes_zero_p (vr0)
&& !symbolic_range_p (vr1)
&& !range_includes_zero_p (vr1))
- set_value_range_to_nonnull (vr0, TREE_TYPE (vr0->min));
+ {
+ set_value_range_to_nonnull (vr0, TREE_TYPE (vr0->min));
+
+ /* Since this meet operation did not result from the meeting of
+ two equivalent names, VR0 cannot have any equivalences. */
+ if (vr0->equiv)
+ bitmap_clear (vr0->equiv);
+ }
else
set_value_range_to_varying (vr0);
}