opts.c (common_handle_option): Add support for -fno-sanitize=all and -f{,no-}sanitize...
authorJakub Jelinek <jakub@redhat.com>
Tue, 6 Jan 2015 09:52:06 +0000 (10:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 6 Jan 2015 09:52:06 +0000 (10:52 +0100)
commitfb153d02da077fb18f52372dab68a8cc52ea3a54
tree3c149bb9e260ef1bff00bd67e7a0331e2b04a951
parenta1954e97e7e41395c48e6913b5902b466bac83b6
opts.c (common_handle_option): Add support for -fno-sanitize=all and -f{,no-}sanitize-recover=all.

* opts.c (common_handle_option): Add support for
-fno-sanitize=all and -f{,no-}sanitize-recover=all.
* doc/invoke.texi: Document -fno-sanitize=all,
-f{,no-}sanitize-recover=all.  Document that
-fsanitize=float-cast-overflow is not enabled
by -fsanitize=undefined.  Fix up documentation
of -f{,no-}sanitize-recover.

* c-c++-common/asan/sanitize-all-1.c: New test.
* c-c++-common/ubsan/sanitize-all-1.c: New test.
* c-c++-common/ubsan/sanitize-all-2.c: New test.
* c-c++-common/ubsan/sanitize-all-3.c: New test.
* c-c++-common/ubsan/sanitize-all-4.c: New test.

From-SVN: r219241
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/sanitize-all-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-all-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-all-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-all-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-all-4.c [new file with mode: 0644]