This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: BIT_ANDTC_EXPR - kill it?
Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz> writes:
> > what means the operation with tree code BIT_ANDTC_EXPR?
> > I can't find a documentation about it.
>
> In fold-const.c, I have found this:
>
> case BIT_ANDTC_EXPR:
> low = int1l & ~int2l, hi = int1h & ~int2h;
> break;
>
> In ./gcc/cp/lex.c:
> operator_name_info [(int) BIT_ANDTC_EXPR].name = "&~";
>
> As I expected, it seems to be X & ~Y.
>
>
>
>
> What do you think about killing BIT_ANDTC_EXPR ?
>
> There are only few uses of it, majority of them is in something like
> this:
> case BIT_AND_EXPR:
> case BIT_ANDTC_EXPR:
> case BIT_OR_EXPR:
> something;
> break;
It does seem to be unnecessary. Would you like to make a patch?
--
- Geoffrey Keating <geoffk@geoffk.org>