diff options
author | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-05 13:06:07 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-05 13:06:07 +0000 |
commit | bdc453866cbd815b1d62d858272b8a40f8fdc9fa (patch) | |
tree | 04c9b9fa1818c750489682948c3f7dda525bc7e4 /gcc/tree-ssa-loop-niter.c | |
parent | 989ea525bec01e16c29b69bf5194310c551d9c34 (diff) | |
download | gcc-bdc453866cbd815b1d62d858272b8a40f8fdc9fa.zip gcc-bdc453866cbd815b1d62d858272b8a40f8fdc9fa.tar.gz gcc-bdc453866cbd815b1d62d858272b8a40f8fdc9fa.tar.bz2 |
double-int.h (double_int_sub): Declare.
2010-07-05 Richard Guenther <rguenther@suse.de>
* double-int.h (double_int_sub): Declare.
* double-int.c (double_int_sub): New function.
* dwarf2out.c (field_byte_offset): Use it.
* fixed-value.c (do_fixed_add): Likewise.
(do_fixed_multiply): Likewise.
(do_fixed_divide): Likewise.
* tree-predcom.c (add_ref_to_chain): Likewise.
(determine_roots_comp): Likewise.
* tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
From-SVN: r161835
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 9956cc5..b343b60 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -2397,7 +2397,7 @@ derive_constant_upper_bound_ops (tree type, tree op0, /* OP0 + CST. We need to check that BND <= MAX (type) - CST. */ - mmax = double_int_add (max, double_int_neg (cst)); + mmax = double_int_sub (max, cst); if (double_int_ucmp (bnd, mmax) > 0) return max; @@ -2429,7 +2429,7 @@ derive_constant_upper_bound_ops (tree type, tree op0, return max; } - bnd = double_int_add (bnd, double_int_neg (cst)); + bnd = double_int_sub (bnd, cst); } return bnd; |