tree-vrp.c (extract_range_from_binary_expr_1): Initialze neg_*_op* variables.

* tree-vrp.c (extract_range_from_binary_expr_1): Initialze
       neg_*_op* variables.

From-SVN: r262380
This commit is contained in:
Aldy Hernandez 2018-07-04 09:03:35 +00:00 committed by Aldy Hernandez
parent e9029d55f2
commit 3d4a2c6408
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2018-07-04 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp.c (extract_range_from_binary_expr_1): Initialize
neg_*_op* variables.
2018-07-04 Martin Liska <mliska@suse.cz>
* tree-switch-conversion.c: Define

View File

@ -1661,6 +1661,8 @@ extract_range_from_binary_expr_1 (value_range *vr,
tree sym_max_op1 = NULL_TREE;
bool neg_min_op0, neg_min_op1, neg_max_op0, neg_max_op1;
neg_min_op0 = neg_min_op1 = neg_max_op0 = neg_max_op1 = false;
/* If we have a PLUS or MINUS with two VR_RANGEs, either constant or
single-symbolic ranges, try to compute the precise resulting range,
but only if we know that this resulting range will also be constant