This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH] fix PR target/54407
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: libstdc++ at gcc dot gnu dot org
- Cc: dominiq at lps dot ens dot fr, redi at gcc dot gnu dot org, mikestump at comcast dot net, iain at codesourcery dot com
- Date: Tue, 16 Oct 2012 09:03:05 -0400
- Subject: [PATCH] fix PR target/54407
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* } }