mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-21 19:35:28 -05:00
re PR tree-optimization/29439 (ICE in fold-const.c:1385 with -O1 -fwrapv -ftree-vrp)
2006-11-13 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/29439 * tree-vrp.c (vrp_int_const_binop): Use the correct tree when checking for overflow. From-SVN: r118763
This commit is contained in:
committed by
Andrew Pinski
parent
4063073db5
commit
a5c132bf91
@@ -1,3 +1,9 @@
|
||||
2006-11-13 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
||||
|
||||
PR tree-opt/29439
|
||||
* tree-vrp.c (vrp_int_const_binop): Use the correct tree when
|
||||
checking for overflow.
|
||||
|
||||
2006-11-13 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
Backport from mainline:
|
||||
|
||||
@@ -1177,7 +1177,7 @@ vrp_int_const_binop (enum tree_code code, tree val1, tree val2)
|
||||
else if (code == MULT_EXPR && !integer_zerop (val1))
|
||||
{
|
||||
tree tmp = int_const_binop (TRUNC_DIV_EXPR,
|
||||
TYPE_MAX_VALUE (TREE_TYPE (val1)),
|
||||
res,
|
||||
val1, 0);
|
||||
int check = compare_values (tmp, val2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user