Allocate bitmap before copying

Allocate bitmap before copying
gcc/ChangeLog:

2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>

	* tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
	  copying.

From-SVN: r240950
This commit is contained in:
Kugan Vivekanandarajah 2016-10-10 22:03:09 +00:00 committed by Kugan Vivekanandarajah
parent b20e75328b
commit 496f8eead8
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
* tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
copying.
2016-10-10 Andreas Tobler <andreast@gcc.gnu.org> 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
* config.gcc: Add aarch64-*-freebsd* support. * config.gcc: Add aarch64-*-freebsd* support.

View File

@ -8622,7 +8622,10 @@ vrp_intersect_ranges_1 (value_range *vr0, value_range *vr1)
if (vr0->equiv && vr1->equiv && vr0->equiv != vr1->equiv) if (vr0->equiv && vr1->equiv && vr0->equiv != vr1->equiv)
bitmap_ior_into (vr0->equiv, vr1->equiv); bitmap_ior_into (vr0->equiv, vr1->equiv);
else if (vr1->equiv && !vr0->equiv) else if (vr1->equiv && !vr0->equiv)
bitmap_copy (vr0->equiv, vr1->equiv); {
vr0->equiv = BITMAP_ALLOC (&vrp_equiv_obstack);
bitmap_copy (vr0->equiv, vr1->equiv);
}
} }
void void