diff options
author | Max Ostapenko <m.ostapenko@partner.samsung.com> | 2015-11-23 11:15:13 +0200 |
---|---|---|
committer | Maxim Ostapenko <chefmax@gcc.gnu.org> | 2015-11-23 11:15:13 +0200 |
commit | b59e2a4903fa1ac8c3b34338a62b1e3fb15c3792 (patch) | |
tree | f7c62c92ce48c00bad27d1fa88ecde0728255afa /gcc/opts.c | |
parent | 16310b3fff2282f0d7e332c8fdb9d69952c920b4 (diff) | |
download | gcc-b59e2a4903fa1ac8c3b34338a62b1e3fb15c3792.zip gcc-b59e2a4903fa1ac8c3b34338a62b1e3fb15c3792.tar.gz gcc-b59e2a4903fa1ac8c3b34338a62b1e3fb15c3792.tar.bz2 |
libsanitizer merge from upstream r253555, compiler part.
gcc/
* opts.c (finish_options): Allow -fsanitize-recover=address for
userspace sanitization.
* asan.c (asan_expand_check_ifn): Redefine recover_p.
* doc/invoke.texi (fsanitize-recover): Update documentation.
gcc/testsuite/
* c-c++-common/asan/halt_on_error-1.c: New test.
* c-c++-common/asan/halt_on_error-2.c: Likewise.
From-SVN: r230741
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -941,10 +941,7 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, "-fsanitize=address and -fsanitize=kernel-address " "are incompatible with -fsanitize=thread"); - /* Error recovery is not allowed for ASan and TSan. */ - - if (opts->x_flag_sanitize_recover & SANITIZE_USER_ADDRESS) - error_at (loc, "-fsanitize-recover=address is not supported"); + /* Error recovery is not allowed for LSan and TSan. */ if (opts->x_flag_sanitize_recover & SANITIZE_THREAD) error_at (loc, "-fsanitize-recover=thread is not supported"); |