This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, testsuite]: Move gcc.dg/sancov/asan.c to gcc.dg/asan/sancov-1.c
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Jakub Jelinek <jakub at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Fri, 5 Feb 2016 17:42:09 +0100
- Subject: Re: [PATCH, testsuite]: Move gcc.dg/sancov/asan.c to gcc.dg/asan/sancov-1.c
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4aRh-OP7=fgLms4_VCoA99JHXAJ94V7jFRfbFpXdFh-=Q at mail dot gmail dot com>
On Thu, Feb 4, 2016 at 2:21 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Thu, Feb 4, 2016 at 1:49 PM, Andreas Schwab <schwab@suse.de> wrote:
>
>>>> OTOH, does this testcase even gets a chance to run?
>>>
>>> It's not a runtime check.
>>
>> But it didn't link until today:
>>
>> Running /opt/gcc/gcc-20160203/gcc/testsuite/gcc.dg/sancov/sancov.exp ...
>> Executing on host: /opt/gcc/gcc-20160203/Build/gcc/xgcc -B/opt/gcc/gcc-20160203/Build/gcc/ fsanitize_address29346.c -fno-diagnostics-show-caret -fdiagnostics-color=never -fsanitize=address -lm -o fsanitize_address29346.exe (timeout = 300)
>> spawn -ignore SIGHUP /opt/gcc/gcc-20160203/Build/gcc/xgcc -B/opt/gcc/gcc-20160203/Build/gcc/ fsanitize_address29346.c -fno-diagnostics-show-caret -fdiagnostics-color=never -fsanitize=address -lm -o fsanitize_address29346.exe.
>> /usr/aarch64-suse-linux/bin/ld: cannot find libasan_preinit.o: No such file or directory.
>> /usr/aarch64-suse-linux/bin/ld: cannot find -lasan.
>> collect2: error: ld returned 1 exit status.
>> compiler exited with status 1
>> output is:
>> /usr/aarch64-suse-linux/bin/ld: cannot find libasan_preinit.o: No such file or directory.
>> /usr/aarch64-suse-linux/bin/ld: cannot find -lasan.
>> collect2: error: ld returned 1 exit status.
>>
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O0
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O1
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O2
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O3
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O0 -g
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O1 -g
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O2 -g
>> UNSUPPORTED: gcc.dg/sancov/asan.c -O3 -g
>
> We have to move the testcase from sancov to asan directory, otherwise
> the test won't work (and it didn't work even on x86_64, since the
> effective target test always failed).
>
> 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
>
> * gcc.dg/sancov/asan.c: Move to ...
> * gcc.dg/asan/sancov-1.c: ... here.
>
> The patch was tested on x86_64-linux-gnu and I have double checked
> that the testcase passes.
Now committed to mainline SVN.
Uros.