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
This commit is contained in:
Jason Merrill 2011-11-01 00:02:45 -04:00 committed by Jason Merrill
parent e03ea4ad2c
commit a7d5d7e221
33 changed files with 58 additions and 20 deletions

View 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.

View 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 \

View 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 \

View 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)
{

View 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)
{

View File

@ -33,7 +33,9 @@
#pragma GCC system_header
#include <memory>
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <initializer_list>
#endif
namespace std _GLIBCXX_VISIBILITY(default)
{

View 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)
{

View 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)
{

View 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)
{

View 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)
{

View 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)
{

View 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)
{

View 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)
{

View 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)
{

View File

@ -32,7 +32,10 @@
#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>

View 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)
{

View 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

View 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>

View 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>

View 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>

View 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>

View 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
//

View 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
//

View 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
//

View 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
//

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>