This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SIMPLE NOT expressions
> > This code should always replace a TRUTH_NOT_EXPR with an EQ_EXPR.
> >
> > So why do you still end up with them?
>
> My mistake. Before I wrote this code, I looked at tree-simple.c:
>
> unop
>
> : '+'
> :
> | '-'
> | '!'
> | '~'
>
> But these are bitwise unops, so we're actually generating non-SIMPLE
> code. Oops!
I dodn't think '!' was a bitwise op. I thought it was just shorthand for '0
!='. Maybe we should remove it from the grammar. If not, how is '!'
represented?
> I'll fix it, thanks!
>
> Greetz
> Steven