Remove include directives for deleted Profile Mode headers
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Sep 2019 16:08:24 +0000 (17:08 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Sep 2019 16:08:24 +0000 (17:08 +0100)
* include/std/array: Remove references to profile mode.
* include/std/bitset: Likewise.
* include/std/deque: Likewise.
* include/std/forward_list: Likewise.
* include/std/list: Likewise.
* include/std/map: Likewise.
* include/std/set: Likewise.
* include/std/unordered_map: Likewise.
* include/std/unordered_set: Likewise.
* include/std/vector: Likewise.
* testsuite/17_intro/headers/c++1998/profile_mode.cc: New test.
* testsuite/17_intro/headers/c++2011/profile_mode.cc: New test.

From-SVN: r276152

13 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/array
libstdc++-v3/include/std/bitset
libstdc++-v3/include/std/deque
libstdc++-v3/include/std/forward_list
libstdc++-v3/include/std/list
libstdc++-v3/include/std/map
libstdc++-v3/include/std/set
libstdc++-v3/include/std/unordered_map
libstdc++-v3/include/std/unordered_set
libstdc++-v3/include/std/vector
libstdc++-v3/testsuite/17_intro/headers/c++1998/profile_mode.cc [new file with mode: 0644]
libstdc++-v3/testsuite/17_intro/headers/c++2011/profile_mode.cc [new file with mode: 0644]

index cd46ef31eaba9d3e81440401953af153b49fac5d..5d2349bcb7b4d1c1c042d03e38f3d54e9302dc12 100644 (file)
@@ -1,3 +1,18 @@
+2019-09-26  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/std/array: Remove references to profile mode.
+       * include/std/bitset: Likewise.
+       * include/std/deque: Likewise.
+       * include/std/forward_list: Likewise.
+       * include/std/list: Likewise.
+       * include/std/map: Likewise.
+       * include/std/set: Likewise.
+       * include/std/unordered_map: Likewise.
+       * include/std/unordered_set: Likewise.
+       * include/std/vector: Likewise.
+       * testsuite/17_intro/headers/c++1998/profile_mode.cc: New test.
+       * testsuite/17_intro/headers/c++2011/profile_mode.cc: New test.
+
 2019-09-25  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/regex.h
index a380f523d440a7d33b576bca51ffaa98f2bb89b6..b1dc888778728549337dcfb33315984f1d9c3528 100644 (file)
@@ -422,10 +422,6 @@ _GLIBCXX_END_NAMESPACE_VERSION
 # include <debug/array>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/array>
-#endif
-
 #endif // C++11
 
 #endif // _GLIBCXX_ARRAY
index d6958301e8a6012eeda45ff2248e42a2c763d980..ef4a91a0c1562d0a2fb45bd79aed0fa03bc6940c 100644 (file)
@@ -1593,8 +1593,4 @@ _GLIBCXX_END_NAMESPACE_VERSION
 # include <debug/bitset>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/bitset>
-#endif
-
 #endif /* _GLIBCXX_BITSET */
index ed4927e13b740e81d869d4ecdb9221d05812acb5..3f8e9abe032e970144dc69fce42081e59713cae4 100644 (file)
 # include <debug/deque>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/deque>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 9d6cc40593babc6b582a82e7053102c1a7d928a0..39c3f4438de6faa93c5085fa1be8627b585a3ed6 100644 (file)
 # include <debug/forward_list>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/forward_list>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 8d6ac198c9a720853795a12848b5aec5142ec21d..35c9d44a39e89f19a890fe562e55564009b3d9dc 100644 (file)
 # include <debug/list>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/list>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 0da7c895aacf848b3af4f85e6a25a086344ec7eb..0eb4f80f93fe355ef6134e4e7f05d0afd39e4920 100644 (file)
 # include <debug/map>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/map>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index a9ce58c4574131efb1fd45e36d94eba27322d2da..4213a4a01b842b326020b2cabbfa0a29db239d92 100644 (file)
 # include <debug/set>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/set>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 60f9bd7a6a65cf5a679d81854e8a894c2f023bfa..eb69240a94f459e5335dfe5ad45131116eeb4f5a 100644 (file)
 # include <debug/unordered_map>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/unordered_map>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 90438738614366232993f5b1e482953d39b6ce34..a28b840c13665c896cb043f19ea242fd7ff075e3 100644 (file)
 # include <debug/unordered_set>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/unordered_set>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index e5e13ab3ef7cde0eea162a4dc38117c95dda87d1..c15faf1da9ab60085884bd25c6247e7c2949aa6e 100644 (file)
 # include <debug/vector>
 #endif
 
-#ifdef _GLIBCXX_PROFILE
-# include <profile/vector>
-#endif
-
 #if __cplusplus >= 201703L
 namespace std _GLIBCXX_VISIBILITY(default)
 {
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/profile_mode.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/profile_mode.cc
new file mode 100644 (file)
index 0000000..d8749f8
--- /dev/null
@@ -0,0 +1,23 @@
+// Copyright (C) 2019 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
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+
+// { dg-options "-std=gnu++98" }
+// { dg-do compile }
+
+// This macro should have no effect now
+#define _GLIBCXX_PROFILE 1
+#include <bits/extc++.h>
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2011/profile_mode.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2011/profile_mode.cc
new file mode 100644 (file)
index 0000000..4cf7c5d
--- /dev/null
@@ -0,0 +1,23 @@
+// Copyright (C) 2019 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
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+
+// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
+
+// This macro should have no effect now
+#define _GLIBCXX_PROFILE 1
+#include <vector>