This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[commit, testsuite] g++.dg/torture/pr46111.C requires pthread support
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Jan 2011 00:20:15 +0100 (CET)
- Subject: [commit, testsuite] g++.dg/torture/pr46111.C requires pthread support
Hello,
the g++.dg/torture/pr46111.C test fails on SPU because the target does
not support threads.
Fixed by adding a dg-require-effective-target pthread statement,
just like all other -ftree-parallelize-loops tests already have.
Tested on spu-elf.
Committed to mainline as obvious.
Bye,
Ulrich
ChangeLog:
* g++.dg/torture/pr46111.C: Add dg-require-effective-target pthread.
Index: gcc/testsuite/g++.dg/torture/pr46111.C
===================================================================
*** gcc/testsuite/g++.dg/torture/pr46111.C (revision 168294)
--- gcc/testsuite/g++.dg/torture/pr46111.C (working copy)
***************
*** 1,4 ****
--- 1,5 ----
// { dg-do compile }
+ // { dg-require-effective-target pthread }
// { dg-options "-ftree-parallelize-loops=2 -g" }
struct A
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com