This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libstdc++ patch] Force C++98 mode for std_c++0x_neg tests
- From: "Doug Gregor" <doug dot gregor at gmail dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>, "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 28 Jun 2007 17:51:59 -0400
- Subject: [libstdc++ patch] Force C++98 mode for std_c++0x_neg tests
This boring patch sets the -std=gnu++98 option for all of the
std_c++0x_neg.cc tests in the libstdc++ test suite (which test that
C++0x headers are not provided in C++98 mode). The patch itself is
essentially a no-op on mainline, because mainline defaults to C++98.
However, it's important for clean testing on the cxx0x-branch, so I'd
like to commit this to mainline to minimize divergence between the
two.
Tested powerpc-apple-darwin-8.10.0. Okay to commit to mainline?
- Doug
2007-06-28 Douglas Gregor <doug.gregor@gmail.com>
* 18_support/headers/cstdbool/std_c++0x_neg.cc: Force C++98 mode.
* 18_support/headers/cstdint/std_c++0x_neg.cc: Ditto.
* 20_util/headers/type_traits/std_c++0x_neg.cc: Ditto.
* 23_containers/headers/array/std_c++0x_neg.cc: Ditto.
* 23_containers/headers/tuple/std_c++0x_neg.cc: Ditto.
* 23_containers/headers/unordered_map/std_c++0x_neg.cc: Ditto.
* 23_containers/headers/unordered_set/std_c++0x_neg.cc: Ditto.
* 26_numerics/headers/ccomplex/std_c++0x_neg.cc: Ditto.
* 26_numerics/headers/cfenv/std_c++0x_neg.cc: Ditto.
* 26_numerics/headers/ctgmath/std_c++0x_neg.cc: Ditto.
* 26_numerics/headers/random/std_c++0x_neg.cc: Ditto.
* 27_io/headers/cinttypes/std_c++0x_neg.cc: Ditto.
* 28_regex/headers/regex/std_c++0x_neg.cc: Ditto.
Index: 18_support/headers/cstdbool/std_c++0x_neg.cc
===================================================================
--- 18_support/headers/cstdbool/std_c++0x_neg.cc (revision 125064)
+++ 18_support/headers/cstdbool/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 18_support/headers/cstdint/std_c++0x_neg.cc
===================================================================
--- 18_support/headers/cstdint/std_c++0x_neg.cc (revision 125064)
+++ 18_support/headers/cstdint/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 20_util/headers/type_traits/std_c++0x_neg.cc
===================================================================
--- 20_util/headers/type_traits/std_c++0x_neg.cc (revision 125064)
+++ 20_util/headers/type_traits/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 23_containers/headers/array/std_c++0x_neg.cc
===================================================================
--- 23_containers/headers/array/std_c++0x_neg.cc (revision 125064)
+++ 23_containers/headers/array/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 23_containers/headers/tuple/std_c++0x_neg.cc
===================================================================
--- 23_containers/headers/tuple/std_c++0x_neg.cc (revision 125064)
+++ 23_containers/headers/tuple/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 23_containers/headers/unordered_map/std_c++0x_neg.cc
===================================================================
--- 23_containers/headers/unordered_map/std_c++0x_neg.cc (revision 125064)
+++ 23_containers/headers/unordered_map/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 23_containers/headers/unordered_set/std_c++0x_neg.cc
===================================================================
--- 23_containers/headers/unordered_set/std_c++0x_neg.cc (revision 125064)
+++ 23_containers/headers/unordered_set/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 26_numerics/headers/ccomplex/std_c++0x_neg.cc
===================================================================
--- 26_numerics/headers/ccomplex/std_c++0x_neg.cc (revision 125064)
+++ 26_numerics/headers/ccomplex/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 26_numerics/headers/cfenv/std_c++0x_neg.cc
===================================================================
--- 26_numerics/headers/cfenv/std_c++0x_neg.cc (revision 125064)
+++ 26_numerics/headers/cfenv/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 26_numerics/headers/ctgmath/std_c++0x_neg.cc
===================================================================
--- 26_numerics/headers/ctgmath/std_c++0x_neg.cc (revision 125064)
+++ 26_numerics/headers/ctgmath/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 26_numerics/headers/random/std_c++0x_neg.cc
===================================================================
--- 26_numerics/headers/random/std_c++0x_neg.cc (revision 125064)
+++ 26_numerics/headers/random/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 27_io/headers/cinttypes/std_c++0x_neg.cc
===================================================================
--- 27_io/headers/cinttypes/std_c++0x_neg.cc (revision 125064)
+++ 27_io/headers/cinttypes/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
Index: 28_regex/headers/regex/std_c++0x_neg.cc
===================================================================
--- 28_regex/headers/regex/std_c++0x_neg.cc (revision 125064)
+++ 28_regex/headers/regex/std_c++0x_neg.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-std=gnu++98" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//