This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: Fix value-prof.c call to build_int_cst_wide
- From: Paul Schlie <schlie at comcast dot net>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>,Nathan Sidwell <nathan at codesourcery dot com>,Dale Johannesen <dalej at apple dot com>
- Date: Sat, 09 Apr 2005 10:24:45 -0400
- Subject: RFA: Fix value-prof.c call to build_int_cst_wide
> or when HOST_BITS_PER_WIDE_INT != 32 ;) (Because build_int_cst_wide
> expects HOST_WIDE_INTs.)
> ...
> tree_val = build_int_cst_wide (get_gcov_type (),
> - val & 0xffffffffull, val >> 32);
> + (unsigned HOST_WIDE_INT) val,
> + val >> (HOST_BITS_PER_WIDE_INT - 1) >> 1);
Hi Richard,
Sorry, I'm a bit confused; when building an expression for evaluation on a
target, shouldn't all the operations be based solely on the attributes of
that target's variable type, not the host's? (i.e. what does an arbitrary
host's HOST_WIDE_INT precision have to do with a target expression operand
precision?)