fix libstdc++/46951

Jonathan Wakely jwakely.gcc@gmail.com
Wed Dec 15 02:21:00 GMT 2010


2010-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/46951
        * testsuite/30_threads/future/members/45133.cc: Fix dg-options.
        * testsuite/30_threads/shared_future/members/45133.cc: Likewise.

Tested x86_64-linux, checked in to trunk.

I had configured with --enable-libstdcxx-time=rt which made it
unnecessary to use -pthread, hiding these failures from me when I
tested. I'll reconfigure with the right options.
-------------- next part --------------
Index: testsuite/30_threads/future/members/45133.cc
===================================================================
--- testsuite/30_threads/future/members/45133.cc	(revision 167823)
+++ testsuite/30_threads/future/members/45133.cc	(working copy)
@@ -1,4 +1,7 @@
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
+// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
 // { dg-require-cstdint "" }
 // { dg-require-gthreads "" }
 // { dg-require-atomic-builtins "" }
Index: testsuite/30_threads/shared_future/members/45133.cc
===================================================================
--- testsuite/30_threads/shared_future/members/45133.cc	(revision 167823)
+++ testsuite/30_threads/shared_future/members/45133.cc	(working copy)
@@ -1,4 +1,7 @@
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
+// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
 // { dg-require-cstdint "" }
 // { dg-require-gthreads "" }
 // { dg-require-atomic-builtins "" }


More information about the Gcc-patches mailing list