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]

Re: [1/4] [patch, middle-end] Make mpz_set/get_double_int functions non-static.


Hello,

> The attached patch (same as before, except with these changes) has been 
> tested with "make check-gcc" on i686-pc-linux-gnu; it seems to work fine 
> except for a bunch of unrelated staticp failures.  Ok?

I am sorry I come up with the issues one by one; since I do not have
rights to approve this patch, I did not study it in detail before:

> +  if (!TREE_CODE (type) == POINTER_TYPE

TREE_CODE (type) != POINTER_TYPE

> +      && TYPE_MIN_VALUE (type)
> +      && TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST)
> +    mpz_set_double_int (min, tree_to_double_int (TYPE_MIN_VALUE (type)),
> +			TYPE_UNSIGNED (type));

> +  if (!TREE_CODE (type) == POINTER_TYPE

TREE_CODE (type) != POINTER_TYPE

> +      && TYPE_MAX_VALUE (type) 
> +      && TREE_CODE (TYPE_MAX_VALUE (type)) == INTEGER_CST)
> +    mpz_set_double_int (max, tree_to_double_int (TYPE_MAX_VALUE (type)),
> +			TYPE_UNSIGNED (type));

Zdenek


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