aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRichard Biener <rguenth@gcc.gnu.org>2010-07-05 13:06:07 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-07-05 13:06:07 +0000
commitbdc453866cbd815b1d62d858272b8a40f8fdc9fa (patch)
tree04c9b9fa1818c750489682948c3f7dda525bc7e4 /gcc/dwarf2out.c
parent989ea525bec01e16c29b69bf5194310c551d9c34 (diff)
downloadgcc-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/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 8e35545..55fef55 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -15745,7 +15745,7 @@ field_byte_offset (const_tree decl)
where the lowest addressed bit of the containing object must
be. */
object_offset_in_bits
- = double_int_add (deepest_bitpos, double_int_neg (type_size_in_bits));
+ = double_int_sub (deepest_bitpos, type_size_in_bits);
/* Round up to type_align by default. This works best for
bitfields. */
@@ -15755,8 +15755,7 @@ field_byte_offset (const_tree decl)
if (double_int_ucmp (object_offset_in_bits, bitpos_int) > 0)
{
object_offset_in_bits
- = double_int_add (deepest_bitpos,
- double_int_neg (type_size_in_bits));
+ = double_int_sub (deepest_bitpos, type_size_in_bits);
/* Round up to decl_align instead. */
object_offset_in_bits