This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Handle TRUTH_{AND,OR,XOR}_EXPR in dump_expr (PR c++/34965)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: Gabriel Dos Reis <gdr at cs dot tamu dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Jan 2008 10:47:32 -0500
- Subject: Re: [PATCH] Handle TRUTH_{AND,OR,XOR}_EXPR in dump_expr (PR c++/34965)
- References: <20080125134626.GA30691@devserv.devel.redhat.com> <4799F6C1.3000700@gnu.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Jan 25, 2008 at 03:48:33PM +0100, Paolo Bonzini wrote:
> Jakub Jelinek wrote:
> >These 3 can be created by fold, if TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR
> >or {EQ,NE}_EXPR arguments are simple enough truthvalues.
> >
> >Regtested on x86_64-linux, ok for trunk?
> >
> >2008-01-25 Jakub Jelinek <jakub@redhat.com>
> >
> > PR c++/34965
> > * error.c (dump_expr): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
> > and TRUTH_XOR_EXPR.
> >
> > * g++.dg/other/error24.C: New test.
>
> Maybe we should assert that the RHS does not have side effects?
I think that's an overkill.
Jakub