public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/108481] [10/11/12/13 Regression] UBsan missed a signed integer overflow Date: Wed, 01 Feb 2023 13:16:06 +0000 [thread overview] Message-ID: <bug-108481-4-qCz1Qqezpt@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108481-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108481 --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I'd say the implementation intends to warn about UB that still remains in the code after optimizations, if a result of some UB invoking operation isn't used (the DCE case) or as in this case the UB happens only when the result of the UB isn't used but it is used in some other path (sinking) etc., then the UB isn't really invoked in the generated code. While in -O0 code it will be encountered and so it is diagnosed.
next prev parent reply other threads:[~2023-02-01 13:16 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-20 14:17 [Bug sanitizer/108481] New: " shaohua.li at inf dot ethz.ch 2023-01-23 12:41 ` [Bug sanitizer/108481] " marxin at gcc dot gnu.org 2023-01-31 3:50 ` [Bug sanitizer/108481] [13 Regression] " pinskia at gcc dot gnu.org 2023-01-31 3:57 ` pinskia at gcc dot gnu.org 2023-01-31 4:00 ` pinskia at gcc dot gnu.org 2023-01-31 8:05 ` shaohua.li at inf dot ethz.ch 2023-02-01 13:11 ` [Bug sanitizer/108481] [10/11/12/13 " jakub at gcc dot gnu.org 2023-02-01 13:16 ` jakub at gcc dot gnu.org [this message] 2023-02-09 13:28 ` jakub 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-108481-4-qCz1Qqezpt@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).