This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]