This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Ignore TREE_CONSTANT_OVERFLOW in integer_zerop
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 2 Apr 2006 14:03:51 +0200
- Subject: Re: [RFC] Ignore TREE_CONSTANT_OVERFLOW in integer_zerop
- References: <Pine.LNX.4.44.0604011958030.17330-100000@www.eyesopen.com>
> 2006-04-01 Roger Sayle <roger@eyesopen.com>
>
> * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
> [...]
> (int_size_in_bytes): Likewise.
> (host_integerp): Likewise.
Is this an oversight?
*************** int_size_in_bytes (tree type)
*** 1725,1731 ****
t = TYPE_SIZE_UNIT (type);
if (t == 0
|| TREE_CODE (t) != INTEGER_CST
- || TREE_OVERFLOW (t)
|| TREE_INT_CST_HIGH (t) != 0
/* If the result would appear negative, it's too big to represent. */
|| (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0)
--- 1717,1722 ----
*************** int
*** 4404,4410 ****
host_integerp (tree t, int pos)
{
return (TREE_CODE (t) == INTEGER_CST
- && ! TREE_OVERFLOW (t)
&& ((TREE_INT_CST_HIGH (t) == 0
&& (HOST_WIDE_INT) TREE_INT_CST_LOW (t) >= 0)
|| (! pos && TREE_INT_CST_HIGH (t) == -1
--- 4395,4400 ----
--
Eric Botcazou