This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] use -std=gnu++0x
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Mar 2007 20:46:28 +0100
- Subject: [v3] use -std=gnu++0x
As noticed by Kaveh and Paolo, if the C++0x tests use gnu++0x instead of
c++0x, then some of the solaris fails go away.
I'm going to check this in and hope that somebody does solaris testing
on mainline.
tested x86/linux
-benjamin
2007-03-16 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/headers/cinttypes/types_std_c++0x.cc: Use
-std=gnu++0x instead of -std=c++0x for testing.
* testsuite/18_support/headers/cstdint/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/random/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/cfenv/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/cmath/types_std_c++0x.cc: Same.
* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Same.
* testsuite/17_intro/headers/c++200x/all.cc: Same.
* testsuite/17_intro/using_namespace_std_tr1_neg.cc: Same.
* testsuite/23_containers/hash/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/unordered_map/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/tuple/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/unordered_multimap/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/unordered_set/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/headers/tuple/types_std_c++0x.cc: Same.
* testsuite/23_containers/unordered_multiset/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/array/requirements/
explicit_instantiation.cc: Same.
* testsuite/20_util/enable_shared_from_this/requirements/
explicit_instantiation.cc: Same.
* testsuite/20_util/headers/functional/types_std_c++0x.cc: Same.
* testsuite/20_util/headers/functional/
using_namespace_std_placeholders.cc: Same.
* testsuite/20_util/headers/type_traits/types_std_c++0x.cc: Same.
* testsuite/20_util/headers/memory/types_std_c++0x.cc: Same.
* testsuite/20_util/shared_ptr/requirements/
explicit_instantiation.cc: Same.
* testsuite/20_util/weak_ptr/requirements/
explicit_instantiation.cc: Same.
Index: testsuite/27_io/headers/cinttypes/types_std_c++0x.cc
===================================================================
--- testsuite/27_io/headers/cinttypes/types_std_c++0x.cc (revision 122995)
+++ testsuite/27_io/headers/cinttypes/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/18_support/headers/cstdint/types_std_c++0x.cc
===================================================================
--- testsuite/18_support/headers/cstdint/types_std_c++0x.cc (revision 122995)
+++ testsuite/18_support/headers/cstdint/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/26_numerics/headers/random/types_std_c++0x.cc
===================================================================
--- testsuite/26_numerics/headers/random/types_std_c++0x.cc (revision 122995)
+++ testsuite/26_numerics/headers/random/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/26_numerics/headers/cfenv/types_std_c++0x.cc
===================================================================
--- testsuite/26_numerics/headers/cfenv/types_std_c++0x.cc (revision 122995)
+++ testsuite/26_numerics/headers/cfenv/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc
===================================================================
--- testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc (revision 122995)
+++ testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/26_numerics/headers/cmath/types_std_c++0x.cc
===================================================================
--- testsuite/26_numerics/headers/cmath/types_std_c++0x.cc (revision 122995)
+++ testsuite/26_numerics/headers/cmath/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc
===================================================================
--- testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc (revision 122995)
+++ testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/17_intro/headers/c++200x/all.cc
===================================================================
--- testsuite/17_intro/headers/c++200x/all.cc (revision 122995)
+++ testsuite/17_intro/headers/c++200x/all.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/17_intro/using_namespace_std_tr1_neg.cc
===================================================================
--- testsuite/17_intro/using_namespace_std_tr1_neg.cc (revision 122995)
+++ testsuite/17_intro/using_namespace_std_tr1_neg.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/hash/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/23_containers/hash/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/23_containers/hash/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/unordered_map/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/23_containers/unordered_map/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/23_containers/unordered_map/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/tuple/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/23_containers/tuple/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/23_containers/tuple/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/unordered_multimap/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/23_containers/unordered_multimap/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/23_containers/unordered_multimap/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/unordered_set/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/23_containers/unordered_set/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/23_containers/unordered_set/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/headers/tuple/types_std_c++0x.cc
===================================================================
--- testsuite/23_containers/headers/tuple/types_std_c++0x.cc (revision 122995)
+++ testsuite/23_containers/headers/tuple/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/unordered_multiset/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/23_containers/unordered_multiset/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/23_containers/unordered_multiset/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/23_containers/array/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/23_containers/array/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/23_containers/array/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/20_util/enable_shared_from_this/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/20_util/enable_shared_from_this/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/20_util/enable_shared_from_this/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation
Index: testsuite/20_util/headers/functional/types_std_c++0x.cc
===================================================================
--- testsuite/20_util/headers/functional/types_std_c++0x.cc (revision 122995)
+++ testsuite/20_util/headers/functional/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/20_util/headers/functional/using_namespace_std_placeholders.cc
===================================================================
--- testsuite/20_util/headers/functional/using_namespace_std_placeholders.cc (revision 122995)
+++ testsuite/20_util/headers/functional/using_namespace_std_placeholders.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/20_util/headers/type_traits/types_std_c++0x.cc
===================================================================
--- testsuite/20_util/headers/type_traits/types_std_c++0x.cc (revision 122995)
+++ testsuite/20_util/headers/type_traits/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/20_util/headers/memory/types_std_c++0x.cc
===================================================================
--- testsuite/20_util/headers/memory/types_std_c++0x.cc (revision 122995)
+++ testsuite/20_util/headers/memory/types_std_c++0x.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation, Inc.
Index: testsuite/20_util/shared_ptr/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/20_util/shared_ptr/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/20_util/shared_ptr/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation
Index: testsuite/20_util/weak_ptr/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/20_util/weak_ptr/requirements/explicit_instantiation.cc (revision 122995)
+++ testsuite/20_util/weak_ptr/requirements/explicit_instantiation.cc (working copy)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++0x" }
+// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007 Free Software Foundation