c-c++-common/attr-simd-3.c's use of -fcilkplus means it requires pthreads.

nathan
--
Nathan Sidwell - Director, Sourcery Services - Mentor Embedded
2015-12-18  Nathan Sidwell  <nat...@acm.org>

	* c-c++-common/attr-simd-3.c: Requires pthreads.

Index: c-c++-common/attr-simd-3.c
===================================================================
--- c-c++-common/attr-simd-3.c	(revision 231815)
+++ c-c++-common/attr-simd-3.c	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-fcilkplus" } */
 /* { dg-prune-output "undeclared here \\(not in a function\\)|\[^\n\r\]* was not declared in this scope" } */
+/* { dg-require-effective-target pthread } */
 
 void f () __attribute__((__simd__, __vector__)); /* { dg-error "in the same function marked as a Cilk Plus" "PR68158" } */

Reply via email to