From 437926c09e3a6425c7b02a6ddd47e731d82a0047 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 1 Sep 2009 12:18:34 +0200 Subject: boehm.c (mark_reference_fields): Compute % in HOST_WIDE_INT type. * boehm.c (mark_reference_fields): Compute % in HOST_WIDE_INT type. * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast POINTER_SIZE to HOST_WIDE_INT. From-SVN: r151263 --- gcc/java/boehm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/java/boehm.c') diff --git a/gcc/java/boehm.c b/gcc/java/boehm.c index 5c65c8b..04af74b 100644 --- a/gcc/java/boehm.c +++ b/gcc/java/boehm.c @@ -1,5 +1,5 @@ /* Functions related to the Boehm garbage collector. - Copyright (C) 2000, 2003, 2004, 2006 Free Software Foundation, Inc. + Copyright (C) 2000, 2003, 2004, 2006, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -111,7 +111,7 @@ mark_reference_fields (tree field, we already covered, then we are doomed. */ gcc_assert (offset > *last_view_index); - if (offset % (POINTER_SIZE / BITS_PER_UNIT)) + if (offset % (HOST_WIDE_INT) (POINTER_SIZE / BITS_PER_UNIT)) { *all_bits_set = -1; *pointer_after_end = 1; -- cgit v1.1