This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add fuzzing coverage support


On Sat, Dec 5, 2015 at 1:54 AM, Nathan Sidwell <nathan@acm.org> wrote:
> On 12/04/15 13:28, Dmitry Vyukov wrote:
>>
>> On Fri, Dec 4, 2015 at 6:39 PM, Jakub Jelinek <jakub@redhat.com> wrote:
>>>
>>> On Fri, Dec 04, 2015 at 06:32:38PM +0100, Dmitry Vyukov wrote:
>>>>
>>>> +2015-12-04  Dmitry Vyukov  <dvyukov@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)


Mailed a fix titled "[PATCH] Fix new sancov tests".
Sorry for the breakage.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]