Patchwork fix gcc.dg/pr53849.c

login
register
mail settings
Submitter Mike Stump
Date July 14, 2012, 10:41 p.m.
Message ID <88E2ACCF-CA41-4743-90DB-F66CA04F8C6C@comcast.net>
Download mbox | patch
Permalink /patch/171030/
State New
Headers show

Comments

Mike Stump - July 14, 2012, 10:41 p.m.
This test requires pthreads, so, I've copied bits from another testcase that uses -pthreads in the same way.

Checked it in.

Patch

diff --git a/gcc/testsuite/gcc.dg/pr53849.c b/gcc/testsuite/gcc.dg/pr53849.c
index 3b67010..eddc45f 100644
--- a/gcc/testsuite/gcc.dg/pr53849.c
+++ b/gcc/testsuite/gcc.dg/pr53849.c
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-require-effective-target pthread } */
 /* { dg-options "-O2 -ftree-parallelize-loops=2 -fno-tree-loop-im" } */
 
 extern int *b, *e[8], d;