public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105705] [12/13 Regression] std::equal triggers incorrect -Wnonnull warning Date: Mon, 23 May 2022 19:11:47 +0000 [thread overview] Message-ID: <bug-105705-4-mwz8rjWPUf@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-105705-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105705 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|std::equal triggers |[12/13 Regression] |incorrect -Wnonnull warning |std::equal triggers | |incorrect -Wnonnull warning Target Milestone|--- |12.2 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- if (_14 != _15) goto <bb 19>; [50.00%] else goto <bb 16>; [50.00%] ... <bb 16> [local count: 507317172]: _50 = _15 - _14; if (_50 != 0) goto <bb 17>; [50.00%] else goto <bb 18>; [50.00%] <bb 17> [local count: 253658586]: _51 = (long unsigned int) _50; _52 = __builtin_memcmp (_14, 0B, _51); _53 = _52 == 0; <bb 18> [local count: 507317172]: # _54 = PHI <1(16), _53(17)> The function call is in an unreachable basic block. Since _15 == _14 holds true in bb16, _50 == 0 will hold true. so bb 17 is never entered. Looks like a pass ordering issue ...
next prev parent reply other threads:[~2022-05-23 19:11 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-23 19:04 [Bug libstdc++/105705] New: " derek.mauro at gmail dot com 2022-05-23 19:11 ` pinskia at gcc dot gnu.org [this message] 2022-05-24 7:23 ` [Bug tree-optimization/105705] [12/13 Regression] " rguenth at gcc dot gnu.org 2022-05-24 7:30 ` jakub at gcc dot gnu.org 2022-05-24 7:40 ` jakub at gcc dot gnu.org 2022-05-24 8:53 ` redi at gcc dot gnu.org 2022-05-24 8:58 ` redi at gcc dot gnu.org 2022-05-24 9:37 ` rguenther at suse dot de 2023-05-08 12:24 ` [Bug tree-optimization/105705] [12/13/14 " 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-105705-4-mwz8rjWPUf@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: linkBe 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).