This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?) 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]