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: Steven Bosscher <stevenb at suse dot de>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: Kazu Hirata <kazu at cs dot umass dot edu>,"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>
- Date: Wed, 22 Sep 2004 14:33:09 +0200 (CEST)
- Subject: Re: [patch] convert.c: Fix PR tree-optimization/17512.
- Organization: SuSE Linux AG
- References: <20040916.095635.74729386.kazu@cs.umass.edu> <1095856232.11068.120.camel@localhost.localdomain>
On Sep 22, 2004 02:30 PM, Diego Novillo <dnovillo@redhat.com> wrote:
> 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).
What is the point of having boolean types at all, then?
Gr.
Steven