diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-05 13:06:07 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-05 13:06:07 +0000 |
commit | b6cfe28d11605d543af0a1dafdd7ecdfb7642871 (patch) | |
tree | 04c9b9fa1818c750489682948c3f7dda525bc7e4 /gcc/tree-ssa-loop-niter.c | |
parent | 008f96d836284b65ab4bc3ee81b62d2bd84ba452 (diff) | |
download | gcc-b6cfe28d11605d543af0a1dafdd7ecdfb7642871.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161835 138bc75d-0d04-0410-961f-82ee72b054a4
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 9956cc551b4..b343b60d35f 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; |