]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.am (install-freestanding-headers): Install c++0x_warning.h.
authorJason Merrill <jason@redhat.com>
Tue, 1 Nov 2011 04:02:45 +0000 (00:02 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 1 Nov 2011 04:02:45 +0000 (00:02 -0400)
* include/Makefile.am (install-freestanding-headers): Install
c++0x_warning.h.
* libsupc++/initializer_list: Include it.

From-SVN: r180727

33 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/bits/algorithmfwd.h
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/forward_list.h
libstdc++-v3/include/bits/stl_bvector.h
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/include/bits/stl_map.h
libstdc++-v3/include/bits/stl_multimap.h
libstdc++-v3/include/bits/stl_multiset.h
libstdc++-v3/include/bits/stl_set.h
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/include/ext/vstring.h
libstdc++-v3/include/std/valarray
libstdc++-v3/libsupc++/initializer_list
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/requirements/dr438/insert_neg.cc
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc

index 4e51b3d1f301f1e6c4b084cc39e16c29216178bf..ddc30f80aba55a3bcd326a238021a30c28906422 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-31  Jason Merrill  <jason@redhat.com>
+
+       * include/Makefile.am (install-freestanding-headers): Install
+       c++0x_warning.h.
+       * libsupc++/initializer_list: Include it.
+
 2011-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * acinclude.m4 (GLIBCXX_CONFIGURE): Refer to GNU/Linux.
index 02deefc72228d984a6f52d9b023d9c6cea2e7a41..74acbf0c88ab479c1c8a9dff3aa8760dafc233b9 100644 (file)
@@ -1201,8 +1201,10 @@ endif
 # are installed by libsupc++, so only the first four and the sub-includes
 # are copied here.
 install-freestanding-headers:
-       $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
+       $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/bits
        $(mkinstalldirs) $(DESTDIR)${host_installdir}
+       $(INSTALL_DATA) ${glibcxx_srcdir}/include/bits/c++0x_warning.h \
+         $(DESTDIR)${gxx_include_dir}/bits
        for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h \
          ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \
          ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \
index e3e75a00511901e3282ea3ab795f059b9aa6108d..8b805ba9acbf03583bab5f950721c8ecd0d8a294 100644 (file)
@@ -1586,8 +1586,10 @@ ${pch3_output}: ${pch3_source} ${pch2_output}
 # are installed by libsupc++, so only the first four and the sub-includes
 # are copied here.
 install-freestanding-headers:
-       $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
+       $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/bits
        $(mkinstalldirs) $(DESTDIR)${host_installdir}
+       $(INSTALL_DATA) ${glibcxx_srcdir}/include/bits/c++0x_warning.h \
+         $(DESTDIR)${gxx_include_dir}/bits
        for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h \
          ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \
          ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \
index cc0b98ed7d280b63629ab230eebed11a714f3849..fbec55d0c36fa97e674a09563a7008323595e09c 100644 (file)
@@ -35,7 +35,9 @@
 #include <bits/c++config.h>
 #include <bits/stl_pair.h>
 #include <bits/stl_iterator_base_types.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 5708194bd012f3d9ece6955eee477475892b4fa3..0edb8b2f8df0fc8bdec72572f6e5eeeb126d6f73 100644 (file)
@@ -40,7 +40,9 @@
 
 #include <ext/atomicity.h>
 #include <debug/debug.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index c80ee508757272de9b01052cf15244ebd4388432..0fc8323767ba7de7adbcc6159644cf131881c159 100644 (file)
@@ -33,7 +33,9 @@
 #pragma GCC system_header
 
 #include <memory>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index bddecb0d4c51eb217b7ad6724976ffddf52a52c7..8f286400aec7b925b99bc479cc906802a27965d7 100644 (file)
@@ -57,7 +57,9 @@
 #ifndef _STL_BVECTOR_H
 #define _STL_BVECTOR_H 1
 
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 17ea01a96e9b000f04e6326ea15c7b0f92b45e41..b924917935670804a677202b519c62942b16b80b 100644 (file)
@@ -60,7 +60,9 @@
 #include <bits/concept_check.h>
 #include <bits/stl_iterator_base_types.h>
 #include <bits/stl_iterator_base_funcs.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 56ee2fbfd2e4d098fcd0e70254b1e85f6581ab08..fc1d8f8c6ea86d638f70fb19db243622add45da6 100644 (file)
@@ -58,7 +58,9 @@
 #define _STL_LIST_H 1
 
 #include <bits/concept_check.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 889e52b388a9d6623b7eb9d3b66eb57c3fbb2e1a..45824f04079fb0e141adeef6710206a20e656579 100644 (file)
@@ -59,7 +59,9 @@
 
 #include <bits/functexcept.h>
 #include <bits/concept_check.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 6b74558948c2996a427aff7000ae3489bda124bd..fd5a5a8cffba892fe067f93d827aa39827404f1b 100644 (file)
@@ -58,7 +58,9 @@
 #define _STL_MULTIMAP_H 1
 
 #include <bits/concept_check.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 8b25a97548041b932f651f16f78f19c93e583357..ab467c80dc31a22a3a36c3e1cfd1bad02ab17760 100644 (file)
@@ -58,7 +58,9 @@
 #define _STL_MULTISET_H 1
 
 #include <bits/concept_check.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index b30966a229222527517560d502d3134d2b7782fd..18fd1176a132541732d57c045b5b075a2518f5aa 100644 (file)
@@ -58,7 +58,9 @@
 #define _STL_SET_H 1
 
 #include <bits/concept_check.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 869bcf7448932c486d8ffbad9d1847016a76d2cb..9b7b698925ff699893d9c932f0190b8664d5f79b 100644 (file)
@@ -60,7 +60,9 @@
 #include <bits/stl_iterator_base_funcs.h>
 #include <bits/functexcept.h>
 #include <bits/concept_check.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 8e825e055d09ba3bf3831d55b66522f89bcda023..5720daf39197b59aba3528bfdca3fab67e58f57d 100644 (file)
 
 #pragma GCC system_header
 
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
+
 #include <ext/vstring_util.h>
 #include <ext/rc_string_base.h>
 #include <ext/sso_string_base.h>
index 3b155c525d852a2d04ea0e5a12c7b3238f0d7e07..a159aab51aeb42f7f73ebe62aa7b50d3c15b908a 100644 (file)
@@ -39,7 +39,9 @@
 #include <cmath>
 #include <algorithm>
 #include <debug/debug.h>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
 #include <initializer_list>
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 0dc8ae90f066b296375443e3de08b0fb601d26c2..0e2c58a43ae4a551ae1f120a4df48d8d891378fe 100644 (file)
@@ -32,7 +32,9 @@
 
 #pragma GCC system_header
 
-#ifdef __GXX_EXPERIMENTAL_CXX0X__
+#ifndef __GXX_EXPERIMENTAL_CXX0X__
+# include <bits/c++0x_warning.h>
+#endif // C++0x
 
 #pragma GCC visibility push(default)
 
@@ -99,5 +101,4 @@ namespace std
 }
 
 #pragma GCC visibility pop
-#endif // C++0x
 #endif // _INITIALIZER_LIST
index 60f5008d6903cdd3ae0be365d05e83d0dcc385b2..006041dc5f780c0f21c0b1e43b4c5441e9a25d0c 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1668 }
+// { dg-error "no matching" "" { target *-*-* } 1670 }
 
 #include <deque>
 
index 2d84537e30a955c7cf9715b65d165b3e00e892e7..c7ed29a21048934fae038e24a47a7451abde0d57 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1601 }
+// { dg-error "no matching" "" { target *-*-* } 1603 }
 
 #include <deque>
 
index 2329a32a4d251e088ea69a880418bf1cc80d15b2..e390f44b565cf3ff8333607002dfdd144f837274 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1601 }
+// { dg-error "no matching" "" { target *-*-* } 1603 }
 
 #include <deque>
 #include <utility>
index 631d76c4aa63493a17fe4e4514cd5c301fee6e62..ed81d582fdff6c5d43b683de964212a091674b7f 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1752 }
+// { dg-error "no matching" "" { target *-*-* } 1754 }
 
 #include <deque>
 
index 7dd46e1fb4841cd7fb172d6cbe76939d70a8282c..774c728ddab3445d9d845351e9f24a4f5127a9cc 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do compile }
 // { dg-options "-std=gnu++0x" }
-// { dg-error "no matching" "" { target *-*-* } 1211 }
+// { dg-error "no matching" "" { target *-*-* } 1213 }
 
 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
 //
index e8e4d5700190bd4ee6d9161a9fd6ae68f8864b24..e19698d6140521640ca849af1f178e4720ea5bb7 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do compile }
 // { dg-options "-std=gnu++0x" }
-// { dg-error "no matching" "" { target *-*-* } 1211 }
+// { dg-error "no matching" "" { target *-*-* } 1213 }
 
 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
 //
index 0ea7d2b7335990d12cf7dd03644d0c47fdabb063..1d7fdb8a2a33b3c661c5656b2f4739fe4e4d171c 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do compile }
 // { dg-options "-std=gnu++0x" }
-// { dg-error "no matching" "" { target *-*-* } 1211 }
+// { dg-error "no matching" "" { target *-*-* } 1213 }
 
 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
 //
index 8d7844cabe4d7defaf8398a6cedf8c8cae67c926..12dd38e76e4e4f7e7e7a70a065db1adf6c1aeb9d 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do compile }
 // { dg-options "-std=gnu++0x" }
-// { dg-error "no matching" "" { target *-*-* } 1211 }
+// { dg-error "no matching" "" { target *-*-* } 1213 }
 
 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
 //
index 974821f0e529e82a5b04c38eace12cad6f211230..6349ea2ca4e391f5e1c006a0495c3fbb3eff979a 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1549 }
+// { dg-error "no matching" "" { target *-*-* } 1551 }
 
 #include <list>
 
index 6683e78062d294d726bb563e1e7f371153776dee..12f28fffd0f4ff52ce63d18d85ac543b061ea8eb 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1505 }
+// { dg-error "no matching" "" { target *-*-* } 1507 }
 
 #include <list>
 
index f3e70098ea0f7c3c6259038711977e1d8f398790..05993340af9b84860ab443686922539e37b352b9 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1505 }
+// { dg-error "no matching" "" { target *-*-* } 1507 }
 
 #include <list>
 #include <utility>
index 7e19c4205dc8ca88d38dfb6fb39be6e7cecfeef8..22acf3ad82d35025b954af316dd3a301492867a4 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1505 }
+// { dg-error "no matching" "" { target *-*-* } 1507 }
 
 #include <list>
 
index 00d18b74fd5ab7860b2d28227c696206d73dd750..1855fddafbd387596d2c2aba3693eea4ca118e29 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1223 }
+// { dg-error "no matching" "" { target *-*-* } 1225 }
 
 #include <vector>
 
index 34c2ed1c6a849ecefee939d06c68c615dbcffe11..9c05486e35b83bfbad7ae0ff60bd15d2cef3fdba 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1153 }
+// { dg-error "no matching" "" { target *-*-* } 1155 }
 
 #include <vector>
 
index 563def0e66640e4c58331ede633e92171ece422e..152393c15dcaa8d3574d5e08c2ee49f4de5d8634 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1153 }
+// { dg-error "no matching" "" { target *-*-* } 1155 }
 
 #include <vector>
 #include <utility>
index fec41a39fdbf7b11fda2c2ad17b82127b4ab892a..f44ae63eb99d860765f5546e81aae2746b272b4d 100644 (file)
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-error "no matching" "" { target *-*-* } 1264 }
+// { dg-error "no matching" "" { target *-*-* } 1266 }
 
 #include <vector>