This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: mark test requiring pthreads
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 18 Dec 2015 15:49:59 +0100
- Subject: Re: mark test requiring pthreads
- Authentication-results: sourceware.org; auth=none
- References: <56741838 dot 5080706 at mentor dot com> <yddmvt7x1ql dot fsf at CeBiTec dot Uni-Bielefeld dot DE> <56741BC4 dot 5040903 at acm dot org>
Hi Nathan,
> On 12/18/15 09:36, Rainer Orth wrote:
>> Hi Nathan,
>>
>>> c-c++-common/attr-simd-3.c's use of -fcilkplus means it requires pthreads.
>>
>> why would this matter for a compile test? What happens without?
>
> Executing on host: nvptx-none-gcc
> /scratch/nsidwell/openacc/trunk-ptx-shared/src/gcc-mainline/gcc/testsuite/c-c++-common/attr-simd-3.c
> -fno-diagnostics-show-caret -fdiagnostics-color=never -Wc++-compat
> -fcilkplus -DSTACK_SIZE=8192 -DNO_TRAMPOLINES -DNO_LABEL_VALUES
> -DSIGNAL_SUPPRESS -S -o attr-simd-3.s (timeout = 600)
> nvptx-none-gcc: error: unrecognized command line option '-pthread'
>
> compiler exited with status 1
> output is:
> nvptx-none-gcc: error: unrecognized command line option '-pthread'
>
>
> FAIL: c-c++-common/attr-simd-3.c -Wc++-compat PR68158 (test for errors,
> line 5)
> FAIL: c-c++-common/attr-simd-3.c -Wc++-compat (test for excess errors)
> Excess errors:
> nvptx-none-gcc: error: unrecognized command line option '-pthread'
ok, I see. I'm uncomfortable declaring the requirement this
indirectly/unobviously. I'd rather add a requirement on cilkplus (we
have that effective-target keyword already) and update
check_effective_target_cilkplus in target-supports.exp for nvptx.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University