From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Tom N <nospam@codesniffer.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: -fsanitize=undefined behavior
Date: Thu, 30 Apr 2020 22:57:49 +0100 [thread overview]
Message-ID: <CAH6eHdRXFzFn17CVdpz6S0sWqJixzLboxTm+othc2GksVWnBgw@mail.gmail.com> (raw)
In-Reply-To: <705810366.188410.1588278611012@email.ionos.com>
On Thu, 30 Apr 2020 at 22:27, Tom N <nospam@codesniffer.com> wrote:
>
> The man page for -fsanitize=undefined lists a bunch of sub-options (eg. -fsanitize=shift, -fsanitize=shift-exponent, etc). If I include -fsanitize=undefined does it enable all of the sub-options, or none, or something in between? If it doesn't enable all sub-options, is there an easy way to do that short of specifying all of them?
The man page says:
"Unlike other similar options, -fsanitize=float-divide-by-zero is not
enabled by -fsanitize=undefined" and "Unlike other similar options,
-fsanitize=float-cast-overflow is not enabled by -fsanitize=undefined"
So it seems reasonable to assume that all the other suboptions are
enabled by -fsanitize=undefined, and if you want *all* of them then
use -fsanitize=undefined -fsanitize=float-divide-by-zero
-fsanitize=float-cast-overflow
next prev parent reply other threads:[~2020-04-30 21:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 20:30 Tom N
2020-04-30 21:57 ` Jonathan Wakely [this message]
2020-04-30 22:58 ` Tom N
2020-05-01 11:39 ` Jonathan Wakely
2020-05-01 17:13 ` Tom N
2020-05-01 18:17 ` Jonathan Wakely
2020-05-01 20:53 ` Tom N
2020-05-01 13:38 ` Segher Boessenkool
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=CAH6eHdRXFzFn17CVdpz6S0sWqJixzLboxTm+othc2GksVWnBgw@mail.gmail.com \
--to=jwakely.gcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=nospam@codesniffer.com \
/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).