From patchwork Sat Nov 26 15:15:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 127811 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 CBF4FB70BB for ; Sun, 27 Nov 2011 02:15:55 +1100 (EST) Received: (qmail 3579 invoked by alias); 26 Nov 2011 15:15:49 -0000 Received: (qmail 3562 invoked by uid 22791); 26 Nov 2011 15:15:47 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Nov 2011 15:15:28 +0000 Received: by wwo28 with SMTP id 28so6395469wwo.8 for ; Sat, 26 Nov 2011 07:15:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.81.73 with SMTP id y9mr38835231wix.37.1322320527012; Sat, 26 Nov 2011 07:15:27 -0800 (PST) Received: by 10.216.139.105 with HTTP; Sat, 26 Nov 2011 07:15:26 -0800 (PST) Date: Sat, 26 Nov 2011 15:15:26 +0000 Message-ID: Subject: [v3] partial fix for libstdc++/51296 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 This fixes the easy bits. PR libstdc++/51296 * testsuite/30_threads/thread/native_handle/typesizes.cc: Do not run on alpha*-*-osf*. * testsuite/30_threads/future/cons/constexpr.cc: Disable debug symbols. * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise. Tested x86_64-linux, committed to trunk. Index: testsuite/30_threads/thread/native_handle/typesizes.cc =================================================================== --- testsuite/30_threads/thread/native_handle/typesizes.cc (revision 181460) +++ testsuite/30_threads/thread/native_handle/typesizes.cc (working copy) @@ -1,5 +1,5 @@ -// { dg-do run { target *-*-linux* *-*-solaris* *-*-cygwin alpha*-*-osf* mips-sgi-irix6* } } -// { dg-options " -std=gnu++0x -pthread" { target *-*-linux* alpha*-*-osf* mips-sgi-irix6* } } +// { dg-do run { target *-*-linux* *-*-solaris* *-*-cygwin mips-sgi-irix6* } } +// { dg-options " -std=gnu++0x -pthread" { target *-*-linux* mips-sgi-irix6* } } // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } } // { dg-options " -std=gnu++0x " { target *-*-cygwin } } // { dg-require-cstdint "" } Index: testsuite/30_threads/future/cons/constexpr.cc =================================================================== --- testsuite/30_threads/future/cons/constexpr.cc (revision 181459) +++ testsuite/30_threads/future/cons/constexpr.cc (working copy) @@ -1,12 +1,12 @@ // { dg-do compile } -// { dg-options "-std=gnu++0x -fno-inline -save-temps" } +// { dg-options "-std=gnu++0x -fno-inline -save-temps -g0" } // { dg-require-cstdint "" } // { dg-require-gthreads "" } // { dg-require-atomic-builtins "" } // { dg-final { scan-assembler-not "_ZNSt6futureIvEC2Ev" } } // { dg-final { scan-assembler-not "_ZNSt6futureIiEC2Ev" } } -// Copyright (C) 2010 Free Software Foundation, Inc. +// Copyright (C) 2010, 2011 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the Index: testsuite/30_threads/shared_future/cons/constexpr.cc =================================================================== --- testsuite/30_threads/shared_future/cons/constexpr.cc (revision 181459) +++ testsuite/30_threads/shared_future/cons/constexpr.cc (working copy) @@ -1,12 +1,12 @@ // { dg-do compile } -// { dg-options "-std=gnu++0x -fno-inline -save-temps" } +// { dg-options "-std=gnu++0x -fno-inline -save-temps -g0" } // { dg-require-cstdint "" } // { dg-require-gthreads "" } // { dg-require-atomic-builtins "" } // { dg-final { scan-assembler-not "_ZNSt13shared_futureIvEC2Ev" } } // { dg-final { scan-assembler-not "_ZNSt13shared_futureIiEC2Ev" } } -// Copyright (C) 2010 Free Software Foundation, Inc. +// Copyright (C) 2010, 2011 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the