On 12/04/15 13:28, Dmitry Vyukov wrote:
On Fri, Dec 4, 2015 at 6:39 PM, Jakub Jelinek <ja...@redhat.com> wrote:
On Fri, Dec 04, 2015 at 06:32:38PM +0100, Dmitry Vyukov wrote:
+2015-12-04  Dmitry Vyukov  <dvyu...@google.com>
+
+     * 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.

This is ok for trunk.


Committed as 231296

This seems to have changed the testsuite (gcc.dg/sancov) without record in testsuite/ChangeLog. Further, the tests presume sanitizer coverage is implemented. I'm seeing asan.c fail with:

cc1: warning: -fsanitize=address and -fsanitize=kernel-address are not supported for this target

cc1: warning: -fsanitize=address not supported for this target

output is:
cc1: warning: -fsanitize=address and -fsanitize=kernel-address are not supported for this target

cc1: warning: -fsanitize=address not supported for this target


FAIL: gcc.dg/sancov/asan.c   -O0  (test for excess errors)

Reply via email to