]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix handling of -fsanitize-recover* options.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2016 10:55:34 +0000 (10:55 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2016 10:55:34 +0000 (10:55 +0000)
commit9c7de46a703314b316544123d36b0fba614e4409
treedfdcff0777887158eb50d49f939f910bd45980c8
parent01977fbda4feee894e6d8d4ebdefa4aff5ec49b2
Fix handling of -fsanitize-recover* options.

* common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
from default sanitize recover values.
* doc/invoke.texi: Fix documentation related to -fsanitize=leak,
-fsanitize=address, -fsanitize=thread and -fsanitize-recover.
* flag-types.h: Replace couple of 1 << x to 1UL << x, make it
consistent.
* opts.c (finish_options): Do a generic loop over options
that can be recovered.
(parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
SANITIZE_RETURN.
(common_handle_option): Likewise.
* opts.h: Declare can_recover to sanitizer_opts_s.
* c-c++-common/ubsan/sanitize-recover-1.c: New test.
* c-c++-common/ubsan/sanitize-recover-2.c: New test.
* c-c++-common/ubsan/sanitize-recover-3.c: New test.
* c-c++-common/ubsan/sanitize-recover-4.c: New test.
* c-c++-common/ubsan/sanitize-recover-5.c: New test.
* c-c++-common/ubsan/sanitize-recover-6.c: New test.
* c-c++-common/ubsan/sanitize-recover-7.c: New test.
* c-c++-common/ubsan/sanitize-recover-8.c: New test.
* c-c++-common/ubsan/sanitize-recover-9.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240491 138bc75d-0d04-0410-961f-82ee72b054a4
16 files changed:
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/flag-types.h
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-4.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-5.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-6.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-7.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-8.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/sanitize-recover-9.c [new file with mode: 0644]