public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/58413] ubsan constant folding Date: Wed, 25 Sep 2013 08:59:00 -0000 [thread overview] Message-ID: <bug-58413-4-B9PiAFblLG@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-58413-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58413 --- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Wed Sep 25 08:58:57 2013 New Revision: 202886 URL: http://gcc.gnu.org/viewcvs?rev=202886&root=gcc&view=rev Log: PR sanitizer/58413 c-family/ * c-ubsan.c (ubsan_instrument_shift): Don't instrument an expression if we can prove it is correct. (ubsan_instrument_division): Likewise. Remove unnecessary check. testsuite/ * c-c++-common/ubsan/shift-5.c: New test. * c-c++-common/ubsan/shift-6.c: New test. * c-c++-common/ubsan/div-by-zero-5.c: New test. * gcc.dg/ubsan/c-shift-1.c: New test. Added: trunk/gcc/testsuite/c-c++-common/ubsan/div-by-zero-5.c trunk/gcc/testsuite/c-c++-common/ubsan/shift-5.c trunk/gcc/testsuite/c-c++-common/ubsan/shift-6.c trunk/gcc/testsuite/gcc.dg/ubsan/c-shift-1.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-ubsan.c trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2013-09-25 8:59 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-09-13 9:46 [Bug sanitizer/58413] New: " jan.smets@alcatel-lucent.com 2013-09-13 9:55 ` [Bug sanitizer/58413] " mpolacek at gcc dot gnu.org 2013-09-13 18:16 ` mpolacek at gcc dot gnu.org 2013-09-14 8:30 ` mpolacek at gcc dot gnu.org 2013-09-16 16:00 ` mpolacek at gcc dot gnu.org 2013-09-25 8:59 ` mpolacek at gcc dot gnu.org [this message] 2013-09-25 9:00 ` mpolacek 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-58413-4-B9PiAFblLG@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).