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