diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2015-12-04 10:27:54 -0800 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@gcc.gnu.org> | 2015-12-04 10:27:54 -0800 |
commit | 95e7bbb8d60c2725ff2cdd0cdd9f35942debb599 (patch) | |
tree | 9be0f083fcd490b1940dc33ac1c11dc8d4632fd6 /gcc/doc | |
parent | f58101cf288f731c7ca5598d14254940cd8d0e8a (diff) | |
download | gcc-95e7bbb8d60c2725ff2cdd0cdd9f35942debb599.zip gcc-95e7bbb8d60c2725ff2cdd0cdd9f35942debb599.tar.gz gcc-95e7bbb8d60c2725ff2cdd0cdd9f35942debb599.tar.bz2 |
Add fuzzing coverage support
* sancov.c: New file.
* Makefile.in (OBJS): Add sancov.o.
* invoke.texi (-fsanitize-coverage=trace-pc): Describe.
* passes.def (sancov_pass): Add.
* tree-pass.h (sancov_pass): Add.
* common.opt (-fsanitize-coverage=trace-pc): Add.
* sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
* builtins.def (DEF_SANITIZER_BUILTIN): Enable for
flag_sanitize_coverage.
From-SVN: r231296
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9ce37bb..5256031 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6136,6 +6136,11 @@ a @code{libubsan} library routine. The advantage of this is that the @code{libubsan} library is not needed and is not linked in, so this is usable even in freestanding environments. +@item -fsanitize-coverage=trace-pc +@opindex fsanitize-coverage=trace-pc +Enable coverage-guided fuzzing code instrumentation. +Inserts call to __sanitizer_cov_trace_pc into every basic block. + @item -fcheck-pointer-bounds @opindex fcheck-pointer-bounds @opindex fno-check-pointer-bounds |