This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] convert.c: Fix PR tree-optimization/17512.
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Andrew Pinski <pinskia at physics dot uc dot edu>, Steven Bosscher <stevenb at suse dot de>
- Date: Wed, 22 Sep 2004 08:30:32 -0400
- Subject: Re: [patch] convert.c: Fix PR tree-optimization/17512.
- Organization: Red Hat Canada
- References: <20040916.095635.74729386.kazu@cs.umass.edu>
On Thu, 2004-09-16 at 09:56, Kazu Hirata wrote:
> The patch simply removes a piece of code in convert_to_integer() that
> creates TRUTH_*_EXPR of whatever integer types that the caller
> requests.
>
Why not tell invert_truthvalue() to accept INTEGRAL_TYPE_P instead of
just boolean? I can't think of a reason why we shouldn't accept any
integral values for TRUTH_*_EXPR (nonzero is true, zero is false).
Diego.