diff options
author | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2006-11-06 23:25:19 +0000 |
---|---|---|
committer | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2006-11-06 23:25:19 +0000 |
commit | 45d6396417b0ee8ab1be605aef0c2e6433e53755 (patch) | |
tree | ff2f53960af4a70afc4abf35568d79f798d39ec3 | |
parent | a056d754c71ba3842216b0d1366d8eae8ac24dd2 (diff) |
2006-11-06 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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@118530 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-vrp.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 55861a28c78..fcc7ce3ec7c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-11-06 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-06 Jan van Dijk <jan@etpmod.phys.tue.nl> * configure.ac: Fixed typo in case statement: :: changed to ;; diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 88c1d304d49..afe7140dfab 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -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); |