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: [patch] convert.c: Fix PR tree-optimization/17512.


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



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