On Oct 15, 2014, at 6:36 AM, Richard Biener <richard.guent...@gmail.com> wrote:
> +      wide_int max_wi = wi::max_value (TYPE_PRECISION (type), UNSIGNED);
> +      max_val = wi::to_widest (wide_int_to_tree (type, max_wi));
> 
> ick - there must be a better way to "extend" max_wi to "infinite"
> precision.  Mike?

  widest_int::from (mem_ref_offset (base), SIGNED);

is an example in the compiler of converting a wide_int to a widest_int.  If the 
value is signed, you convert with SIGNED, if unsigned, you convert it with 
UNSIGNED.

Reply via email to