public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/107919] Possibly false-positive "maybe-uninitialized" with GCC 12 on complex variant-variant-tuple-unique_ptr types
Date: Wed, 30 Nov 2022 11:01:16 +0000	[thread overview]
Message-ID: <bug-107919-4-OAO3E8C4Cb@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-107919-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107919

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:9500877d05c56cef7bfbdcecaab3b1af2610bff3

commit r13-4406-g9500877d05c56cef7bfbdcecaab3b1af2610bff3
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Nov 30 10:55:03 2022 +0100

    tree-optimization/107919 - uninit diagnostic predicate simplification

    We fail to simplify

            ((_145 != 0B) AND (_531 == 2) AND (_109 == 0))
            OR ((NOT (_145 != 0B)) AND (_531 == 2) AND (_109 == 0))
            OR ((NOT (_531 == 2)) AND (_109 == 0))

    because the existing simplification of !A && B || A && B is implemented
    too simplistic.  The following re-implements that which fixes the
    bogus uninit diagnostic when using -O1 but not yet at -O2.

            PR tree-optimization/107919
            * gimple-predicate-analysis.cc (predicate::simplify_2):
            Handle predicates of arbitrary length.

            * g++.dg/warn/Wuninitialized-pr107919-1.C: New testcase.

  parent reply	other threads:[~2022-11-30 11:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 16:29 [Bug c++/107919] New: " freddie_chopin at op dot pl
2022-11-29 16:48 ` [Bug tree-optimization/107919] " freddie_chopin at op dot pl
2022-11-30  9:12 ` rguenth at gcc dot gnu.org
2022-11-30 10:59 ` rguenth at gcc dot gnu.org
2022-11-30 11:01 ` cvs-commit at gcc dot gnu.org [this message]
2022-11-30 11:01 ` rguenth at gcc dot gnu.org
2022-11-30 11:53 ` cvs-commit at gcc dot gnu.org
2024-05-16  7:48 ` rguenth at gcc dot gnu.org

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=bug-107919-4-OAO3E8C4Cb@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).