SIMPLE NOT expressions

Paul Brook paul@nowt.org
Fri Jul 19 05:30:00 GMT 2002


> > 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



More information about the Gcc mailing list