Commit a7d5d7e2 by Jason Merrill Committed by Jason Merrill

Makefile.am (install-freestanding-headers): Install c++0x_warning.h.

	* include/Makefile.am (install-freestanding-headers): Install
	c++0x_warning.h.
	* libsupc++/initializer_list: Include it.

From-SVN: r180727
parent e03ea4ad
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> 2011-10-31 Gerald Pfeifer <gerald@pfeifer.com>
* acinclude.m4 (GLIBCXX_CONFIGURE): Refer to GNU/Linux. * acinclude.m4 (GLIBCXX_CONFIGURE): Refer to GNU/Linux.
......
...@@ -1201,8 +1201,10 @@ endif ...@@ -1201,8 +1201,10 @@ endif
# are installed by libsupc++, so only the first four and the sub-includes # are installed by libsupc++, so only the first four and the sub-includes
# are copied here. # are copied here.
install-freestanding-headers: install-freestanding-headers:
$(mkinstalldirs) $(DESTDIR)${gxx_include_dir} $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/bits
$(mkinstalldirs) $(DESTDIR)${host_installdir} $(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 \ for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h \
${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \ ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \
${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \ ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \
......
...@@ -1586,8 +1586,10 @@ ${pch3_output}: ${pch3_source} ${pch2_output} ...@@ -1586,8 +1586,10 @@ ${pch3_output}: ${pch3_source} ${pch2_output}
# are installed by libsupc++, so only the first four and the sub-includes # are installed by libsupc++, so only the first four and the sub-includes
# are copied here. # are copied here.
install-freestanding-headers: install-freestanding-headers:
$(mkinstalldirs) $(DESTDIR)${gxx_include_dir} $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/bits
$(mkinstalldirs) $(DESTDIR)${host_installdir} $(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 \ for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h \
${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \ ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \
${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \ ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \
......
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
#include <bits/c++config.h> #include <bits/c++config.h>
#include <bits/stl_pair.h> #include <bits/stl_pair.h>
#include <bits/stl_iterator_base_types.h> #include <bits/stl_iterator_base_types.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -40,7 +40,9 @@ ...@@ -40,7 +40,9 @@
#include <ext/atomicity.h> #include <ext/atomicity.h>
#include <debug/debug.h> #include <debug/debug.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
#pragma GCC system_header #pragma GCC system_header
#include <memory> #include <memory>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -57,7 +57,9 @@ ...@@ -57,7 +57,9 @@
#ifndef _STL_BVECTOR_H #ifndef _STL_BVECTOR_H
#define _STL_BVECTOR_H 1 #define _STL_BVECTOR_H 1
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -60,7 +60,9 @@ ...@@ -60,7 +60,9 @@
#include <bits/concept_check.h> #include <bits/concept_check.h>
#include <bits/stl_iterator_base_types.h> #include <bits/stl_iterator_base_types.h>
#include <bits/stl_iterator_base_funcs.h> #include <bits/stl_iterator_base_funcs.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
#define _STL_LIST_H 1 #define _STL_LIST_H 1
#include <bits/concept_check.h> #include <bits/concept_check.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -59,7 +59,9 @@ ...@@ -59,7 +59,9 @@
#include <bits/functexcept.h> #include <bits/functexcept.h>
#include <bits/concept_check.h> #include <bits/concept_check.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
#define _STL_MULTIMAP_H 1 #define _STL_MULTIMAP_H 1
#include <bits/concept_check.h> #include <bits/concept_check.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
#define _STL_MULTISET_H 1 #define _STL_MULTISET_H 1
#include <bits/concept_check.h> #include <bits/concept_check.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
#define _STL_SET_H 1 #define _STL_SET_H 1
#include <bits/concept_check.h> #include <bits/concept_check.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -60,7 +60,9 @@ ...@@ -60,7 +60,9 @@
#include <bits/stl_iterator_base_funcs.h> #include <bits/stl_iterator_base_funcs.h>
#include <bits/functexcept.h> #include <bits/functexcept.h>
#include <bits/concept_check.h> #include <bits/concept_check.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -32,7 +32,10 @@ ...@@ -32,7 +32,10 @@
#pragma GCC system_header #pragma GCC system_header
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
#include <ext/vstring_util.h> #include <ext/vstring_util.h>
#include <ext/rc_string_base.h> #include <ext/rc_string_base.h>
#include <ext/sso_string_base.h> #include <ext/sso_string_base.h>
......
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
#include <cmath> #include <cmath>
#include <algorithm> #include <algorithm>
#include <debug/debug.h> #include <debug/debug.h>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list> #include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
......
...@@ -32,7 +32,9 @@ ...@@ -32,7 +32,9 @@
#pragma GCC system_header #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) #pragma GCC visibility push(default)
...@@ -99,5 +101,4 @@ namespace std ...@@ -99,5 +101,4 @@ namespace std
} }
#pragma GCC visibility pop #pragma GCC visibility pop
#endif // C++0x
#endif // _INITIALIZER_LIST #endif // _INITIALIZER_LIST
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1668 } // { dg-error "no matching" "" { target *-*-* } 1670 }
#include <deque> #include <deque>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1601 } // { dg-error "no matching" "" { target *-*-* } 1603 }
#include <deque> #include <deque>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1601 } // { dg-error "no matching" "" { target *-*-* } 1603 }
#include <deque> #include <deque>
#include <utility> #include <utility>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1752 } // { dg-error "no matching" "" { target *-*-* } 1754 }
#include <deque> #include <deque>
......
// { dg-do compile } // { dg-do compile }
// { dg-options "-std=gnu++0x" } // { 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 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
// //
......
// { dg-do compile } // { dg-do compile }
// { dg-options "-std=gnu++0x" } // { 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 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
// //
......
// { dg-do compile } // { dg-do compile }
// { dg-options "-std=gnu++0x" } // { 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 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
// //
......
// { dg-do compile } // { dg-do compile }
// { dg-options "-std=gnu++0x" } // { 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 // Copyright (C) 2009, 2010, 2011 Free Software Foundation
// //
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1549 } // { dg-error "no matching" "" { target *-*-* } 1551 }
#include <list> #include <list>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1505 } // { dg-error "no matching" "" { target *-*-* } 1507 }
#include <list> #include <list>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1505 } // { dg-error "no matching" "" { target *-*-* } 1507 }
#include <list> #include <list>
#include <utility> #include <utility>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1505 } // { dg-error "no matching" "" { target *-*-* } 1507 }
#include <list> #include <list>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1223 } // { dg-error "no matching" "" { target *-*-* } 1225 }
#include <vector> #include <vector>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1153 } // { dg-error "no matching" "" { target *-*-* } 1155 }
#include <vector> #include <vector>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1153 } // { dg-error "no matching" "" { target *-*-* } 1155 }
#include <vector> #include <vector>
#include <utility> #include <utility>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1264 } // { dg-error "no matching" "" { target *-*-* } 1266 }
#include <vector> #include <vector>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment