re PR sanitizer/69278 (Confusion option handling for -sanitize-recovery=alll)
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Nov 2016 19:51:27 +0000 (20:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Nov 2016 19:51:27 +0000 (20:51 +0100)
commitc944c6a2b209843fc94844838ed8223d669ab401
tree3825ef1789a5f68b24611672321b90423314837a
parent871a2c6c8bb82158a9ab4a54a3e8114a098641ea
re PR sanitizer/69278 (Confusion option handling for -sanitize-recovery=alll)

PR sanitizer/69278
* opts.c (parse_sanitizer_options): For -fsanitize=undefined,
restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.

* g++.dg/ubsan/return-7.C: New test.
* c-c++-common/ubsan/unreachable-4.c: New test.

From-SVN: r242795
gcc/ChangeLog
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/unreachable-4.c [new file with mode: 0644]
gcc/testsuite/g++.dg/ubsan/return-7.C [new file with mode: 0644]