From patchwork Wed Dec 15 02:07:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 75601 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A7271B6F1E for ; Wed, 15 Dec 2010 13:07:38 +1100 (EST) Received: (qmail 5588 invoked by alias); 15 Dec 2010 02:07:32 -0000 Received: (qmail 5519 invoked by uid 22791); 15 Dec 2010 02:07:30 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_CX, TW_DC X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Dec 2010 02:07:24 +0000 Received: by wyb40 with SMTP id 40so1123070wyb.20 for ; Tue, 14 Dec 2010 18:07:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.170.213 with SMTP id p63mr28150wel.6.1292378841795; Tue, 14 Dec 2010 18:07:21 -0800 (PST) Received: by 10.216.160.131 with HTTP; Tue, 14 Dec 2010 18:07:21 -0800 (PST) Date: Wed, 15 Dec 2010 02:07:21 +0000 Message-ID: Subject: fix libstdc++/46951 From: Jonathan Wakely To: "libstdc++" , gcc-patches Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 2010-12-15 Jonathan Wakely 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. 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 "" }