Patchwork [v3] partial fix for libstdc++/51296

login
register
mail settings
Submitter Jonathan Wakely
Date Nov. 26, 2011, 3:15 p.m.
Message ID <CAH6eHdSRhtNAr8KxnWGD9T8dc_BjBFhBJAfu0x19RpiyysDSgA@mail.gmail.com>
Download mbox | patch
Permalink /patch/127811/
State New
Headers show

Comments

Jonathan Wakely - Nov. 26, 2011, 3:15 p.m.
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.

Patch

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