The test gcc.dg/pr54782.c uses command line option
-ftree-parallelize-loops=2 which implies -pthread and thus the test fails on
targets that do not support pthread, such as arm-none-eabi.

This patch adds effective target check.

Ok for trunk?

Thanks,
Greta

ChangeLog

gcc/testsuite

2012-10-05  Greta Yorsh  <greta.yo...@arm.com>

        * gcc.dg/pr54782.c: Require effective target pthread.
diff --git a/gcc/testsuite/gcc.dg/pr54782.c b/gcc/testsuite/gcc.dg/pr54782.c
index 2a30754..161b043 100644
--- a/gcc/testsuite/gcc.dg/pr54782.c
+++ b/gcc/testsuite/gcc.dg/pr54782.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target pthread } */
 /* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -g" } */
 
 struct S

Reply via email to