Add fuzzing coverage support
authorDmitry Vyukov <dvyukov@google.com>
Fri, 4 Dec 2015 18:27:54 +0000 (10:27 -0800)
committerDmitry Vyukov <dvyukov@gcc.gnu.org>
Fri, 4 Dec 2015 18:27:54 +0000 (10:27 -0800)
commit95e7bbb8d60c2725ff2cdd0cdd9f35942debb599
tree9be0f083fcd490b1940dc33ac1c11dc8d4632fd6
parentf58101cf288f731c7ca5598d14254940cd8d0e8a
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
14 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/builtins.def
gcc/common.opt
gcc/doc/invoke.texi
gcc/passes.def
gcc/sancov.c [new file with mode: 0644]
gcc/sanitizer.def
gcc/testsuite/gcc.dg/sancov/asan.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sancov/basic0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sancov/basic1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sancov/basic2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sancov/sancov.exp [new file with mode: 0644]
gcc/tree-pass.h