From patchwork Wed Oct 10 12:16:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [testsuite] add effective target pthread to test gcc.dg/pr54782.c Date: Wed, 10 Oct 2012 02:16:40 -0000 From: Greta Yorsh X-Patchwork-Id: 190620 Message-Id: <000001cda6e1$1a9cd2b0$4fd67810$@yorsh@arm.com> To: "GCC Patches" Cc: , , 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 * 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