public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Eric Botcazou <botcazou@adacore.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Fix thinko in operator_bitwise_xor::op1_range
Date: Fri, 25 Nov 2022 10:35:57 +0100	[thread overview]
Message-ID: <CAFiYyc30kjj+b4wfenScq2DWk7Ja2OEOvC_4FZSjk=fgqdEDOw@mail.gmail.com> (raw)
In-Reply-To: <12106563.O9o76ZdvQC@fomalhaut>

On Fri, Nov 25, 2022 at 10:22 AM Eric Botcazou via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Hi,
>
> there is a thinko in the op1_range method of ranger's operator_bitwise_xor
> class in a boolean context: if the result is known to be true, it may infer
> than a specific operand is false without any basis.
>
> Tested on x86-64/Linux, OK for mainline, 12 and 11 branches?

OK.

Thanks,
Richard.

>
> 2022-11-25  Eric Botcazou  <ebotcazou@adacore.com>
>
>         * range-op.cc (operator_bitwise_xor::op1_range): Fix thinko.
>
>
> 2022-11-25  Eric Botcazou  <ebotcazou@adacore.com>
>
>         * gnat.dg/opt100.adb: New test.
>         * gnat.dg/opt100_pkg.adb, gnat.dg/opt100_pkg.ads: New helper.
>
> --
> Eric Botcazou

      reply	other threads:[~2022-11-25  9:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-25  9:21 Eric Botcazou
2022-11-25  9:35 ` Richard Biener [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFiYyc30kjj+b4wfenScq2DWk7Ja2OEOvC_4FZSjk=fgqdEDOw@mail.gmail.com' \
    --to=richard.guenther@gmail.com \
    --cc=botcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).