[PATCH] fix PR target/54407

Jack Howarth howarth@bromo.med.uc.edu
Tue Oct 16 13:03:00 GMT 2012


  The attached patch eliminates the execution failures in 30_threads/condition_variable/54185.cc
on darwin by limiting the test to darwin11 or later. The test is disabled on darwin10 and earlier
which has broken pthread support. Tested on x86_64-apple-darwin10 and x86_64-apple-darwin12. 
Okay for gcc trunk?

libstdc++-v3/testsuite/

2012-10-16  Dominique Dhumieres  <dominiq@lps.ens.fr>
	    Jack Howarth <howarth@bromo.med.uc.edu>

	PR target/54407
	* 30_threads/condition_variable/54185.cc: Skip for darwin < 11.

Index: libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc
===================================================================
--- libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc	(revision 192494)
+++ libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc	(working copy)
@@ -1,4 +1,4 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin1[1-9]* powerpc-ibm-aix* } }
 // { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }



More information about the Libstdc++ mailing list