summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libstdc++-v3/ChangeLog54
-rw-r--r--libstdc++-v3/include/bits/basic_file.h2
-rw-r--r--libstdc++-v3/include/bits/basic_ios.h2
-rw-r--r--libstdc++-v3/include/bits/basic_string.h2
-rw-r--r--libstdc++-v3/include/bits/char_traits.h2
-rw-r--r--libstdc++-v3/include/bits/codecvt.h2
-rw-r--r--libstdc++-v3/include/bits/cpp_type_traits.h4
-rw-r--r--libstdc++-v3/include/bits/fpos.h2
-rw-r--r--libstdc++-v3/include/bits/gslice.h6
-rw-r--r--libstdc++-v3/include/bits/gslice_array.h4
-rw-r--r--libstdc++-v3/include/bits/indirect_array.h6
-rw-r--r--libstdc++-v3/include/bits/ios_base.h2
-rw-r--r--libstdc++-v3/include/bits/limits_generic.h4
-rw-r--r--libstdc++-v3/include/bits/locale_facets.h2
-rw-r--r--libstdc++-v3/include/bits/localefwd.h2
-rw-r--r--libstdc++-v3/include/bits/mask_array.h4
-rw-r--r--libstdc++-v3/include/bits/sbuf_iter.h4
-rw-r--r--libstdc++-v3/include/bits/sequence_concepts.h8
-rw-r--r--libstdc++-v3/include/bits/slice.h4
-rw-r--r--libstdc++-v3/include/bits/slice_array.h2
-rw-r--r--libstdc++-v3/include/bits/std_algorithm.h2
-rw-r--r--libstdc++-v3/include/bits/std_bitset.h2
-rw-r--r--libstdc++-v3/include/bits/std_complex.h2
-rw-r--r--libstdc++-v3/include/bits/std_deque.h2
-rw-r--r--libstdc++-v3/include/bits/std_fstream.h2
-rw-r--r--libstdc++-v3/include/bits/std_functional.h4
-rw-r--r--libstdc++-v3/include/bits/std_iomanip.h2
-rw-r--r--libstdc++-v3/include/bits/std_ios.h2
-rw-r--r--libstdc++-v3/include/bits/std_iosfwd.h2
-rw-r--r--libstdc++-v3/include/bits/std_iostream.h2
-rw-r--r--libstdc++-v3/include/bits/std_istream.h2
-rw-r--r--libstdc++-v3/include/bits/std_iterator.h2
-rw-r--r--libstdc++-v3/include/bits/std_list.h2
-rw-r--r--libstdc++-v3/include/bits/std_locale.h2
-rw-r--r--libstdc++-v3/include/bits/std_map.h2
-rw-r--r--libstdc++-v3/include/bits/std_memory.h2
-rw-r--r--libstdc++-v3/include/bits/std_numeric.h2
-rw-r--r--libstdc++-v3/include/bits/std_ostream.h2
-rw-r--r--libstdc++-v3/include/bits/std_queue.h2
-rw-r--r--libstdc++-v3/include/bits/std_set.h2
-rw-r--r--libstdc++-v3/include/bits/std_sstream.h2
-rw-r--r--libstdc++-v3/include/bits/std_stack.h2
-rw-r--r--libstdc++-v3/include/bits/std_stdexcept.h2
-rw-r--r--libstdc++-v3/include/bits/std_streambuf.h2
-rw-r--r--libstdc++-v3/include/bits/std_string.h2
-rw-r--r--libstdc++-v3/include/bits/std_utility.h2
-rw-r--r--libstdc++-v3/include/bits/std_valarray.h2
-rw-r--r--libstdc++-v3/include/bits/std_vector.h2
-rw-r--r--libstdc++-v3/include/bits/stringfwd.h2
-rw-r--r--libstdc++-v3/include/bits/type_traits.h2
-rw-r--r--libstdc++-v3/include/bits/valarray_array.h2
-rw-r--r--libstdc++-v3/include/bits/valarray_meta.h2
52 files changed, 170 insertions, 14 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 629c73cf5f6..c415d73f341 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,57 @@
+2001-02-19 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
+
+ * include/bits/basic_file.h: Add #pragma system_header
+ * include/bits/basic_ios.h: Ditto.
+ * include/bits/basic_string.h: Ditto.
+ * include/bits/char_traits.h: Ditto.
+ * include/bits/codecvt.h: Ditto.
+ * include/bits/cpp_type_traits.h: Ditto.
+ * include/bits/fpos.h: Ditto.
+ * include/bits/gslice.h: Ditto.
+ * include/bits/gslice_array.h: Ditto.
+ * include/bits/indirect_array.h: Ditto.
+ * include/bits/ios_base.h: Ditto.
+ * include/bits/limits_generic.h: Ditto.
+ * include/bits/locale_facets.h: Ditto.
+ * include/bits/localefwd.h: Ditto.
+ * include/bits/mask_array.h: Ditto.
+ * include/bits/sbuf_iter.h: Ditto.
+ * include/bits/sequence_concepts.h: Ditto.
+ * include/bits/slice.h: Ditto.
+ * include/bits/slice_array.h: Ditto.
+ * include/bits/std_algorithm.h: Likewise.
+ * include/bits/std_bitset.h: Likewise.
+ * include/bits/std_complex.h: Likewise.
+ * include/bits/std_deque.h: Likewise.
+ * include/bits/std_fstream.h: Likewise.
+ * include/bits/std_functional.h: Likewise.
+ * include/bits/std_iomanip.h: Likewise.
+ * include/bits/std_ios.h: Likewise.
+ * include/bits/std_iosfwd.h: Likewise.
+ * include/bits/std_iostream.h: Likewise.
+ * include/bits/std_istream.h: Likewise.
+ * include/bits/std_iterator.h: Likewise.
+ * include/bits/std_list.h: Likewise.
+ * include/bits/std_locale.h: Likewise.
+ * include/bits/std_map.h: Likewise.
+ * include/bits/std_memory.h: Likewise.
+ * include/bits/std_numeric.h: Likewise.
+ * include/bits/std_ostream.h: Likewise.
+ * include/bits/std_queue.h: Likewise.
+ * include/bits/std_set.h: Likewise.
+ * include/bits/std_sstream.h: Likewise.
+ * include/bits/std_stack.h: Likewise.
+ * include/bits/std_stdexcept.h: Likewise.
+ * include/bits/std_streambuf.h: Likewise.
+ * include/bits/std_string.h: Likewise.
+ * include/bits/std_utility.h: Likewise.
+ * include/bits/std_valarray.h: Likewise.
+ * include/bits/std_vector.h: Likewise.
+ * include/bits/stringfwd.h: Likewise.
+ * include/bits/type_traits.h: Likewise.
+ * include/bits/valarray_array.h: Likewise.
+ * include/bits/valarray_meta.h: Likewise.
+
2001-02-19 Andreas Jaeger <aj@suse.de>
* config/cpu/sparc/sparc64/bits/atomicity.h (__compare_and_swap):
diff --git a/libstdc++-v3/include/bits/basic_file.h b/libstdc++-v3/include/bits/basic_file.h
index f3fb4735647..1f9a3f5e947 100644
--- a/libstdc++-v3/include/bits/basic_file.h
+++ b/libstdc++-v3/include/bits/basic_file.h
@@ -34,6 +34,8 @@
#ifndef _CPP_BASIC_FILE
#define _CPP_BASIC_FILE 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_ios.h>
diff --git a/libstdc++-v3/include/bits/basic_ios.h b/libstdc++-v3/include/bits/basic_ios.h
index d03e656b29e..9019e2bf29a 100644
--- a/libstdc++-v3/include/bits/basic_ios.h
+++ b/libstdc++-v3/include/bits/basic_ios.h
@@ -30,6 +30,8 @@
#ifndef _CPP_BITS_BASICIOS_H
#define _CPP_BITS_BASICIOS_H 1
+#pragma GCC system_header
+
#include <bits/sbuf_iter.h>
#include <bits/locale_facets.h>
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h
index c173d56c987..af831146382 100644
--- a/libstdc++-v3/include/bits/basic_string.h
+++ b/libstdc++-v3/include/bits/basic_string.h
@@ -34,6 +34,8 @@
#ifndef _CPP_BITS_STRING_H
#define _CPP_BITS_STRING_H 1
+#pragma GCC system_header
+
#include <bits/atomicity.h>
namespace std {
diff --git a/libstdc++-v3/include/bits/char_traits.h b/libstdc++-v3/include/bits/char_traits.h
index 43dee93fcb2..bb8b3717e41 100644
--- a/libstdc++-v3/include/bits/char_traits.h
+++ b/libstdc++-v3/include/bits/char_traits.h
@@ -34,6 +34,8 @@
#ifndef _CPP_BITS_CHAR_TRAITS_H
#define _CPP_BITS_CHAR_TRAITS_H 1
+#pragma GCC system_header
+
#include <bits/std_cwchar.h> // For mbstate_t.
#include <bits/std_cstring.h> // For memmove, memset, memchr
#include <bits/fpos.h> // For streamoff, streamsize
diff --git a/libstdc++-v3/include/bits/codecvt.h b/libstdc++-v3/include/bits/codecvt.h
index a02310276c6..68ff5e6de42 100644
--- a/libstdc++-v3/include/bits/codecvt.h
+++ b/libstdc++-v3/include/bits/codecvt.h
@@ -38,6 +38,8 @@
#ifndef _CPP_BITS_CODECVT_H
#define _CPP_BITS_CODECVT_H 1
+#pragma GCC system_header
+
// XXX
// __enc_traits may need to move up the locale header hierarchy,
// depending on if ctype ends up using it.
diff --git a/libstdc++-v3/include/bits/cpp_type_traits.h b/libstdc++-v3/include/bits/cpp_type_traits.h
index ae232ad095b..61cc45d47fa 100644
--- a/libstdc++-v3/include/bits/cpp_type_traits.h
+++ b/libstdc++-v3/include/bits/cpp_type_traits.h
@@ -1,6 +1,6 @@
// The -*- C++ -*- type traits classes for internal use in libstdc++
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// Copyright (C) 2000-2001 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
@@ -32,6 +32,8 @@
#ifndef _CPP_BITS_CPP_TYPE_TRAITS_H
#define _CPP_BITS_CPP_TYPE_TRAITS_H 1
+#pragma GCC system_header
+
//
// This file provides some compile-time information about various types.
// These representations were designed, on purpose, to be constant-expressions
diff --git a/libstdc++-v3/include/bits/fpos.h b/libstdc++-v3/include/bits/fpos.h
index 197b80eaf71..f8b3cb6f294 100644
--- a/libstdc++-v3/include/bits/fpos.h
+++ b/libstdc++-v3/include/bits/fpos.h
@@ -34,6 +34,8 @@
#ifndef _CPP_BITS_FPOS_H
#define _CPP_BITS_FPOS_H 1
+#pragma GCC system_header
+
// Need this here as well as in std_ios because fpos is used in
// char_traits, and char_traits is used by string, which may or may
// not have included the std_ios file.
diff --git a/libstdc++-v3/include/bits/gslice.h b/libstdc++-v3/include/bits/gslice.h
index 737254c9da7..df8ecbe8be9 100644
--- a/libstdc++-v3/include/bits/gslice.h
+++ b/libstdc++-v3/include/bits/gslice.h
@@ -1,6 +1,6 @@
// The template and inlines for the -*- C++ -*- gslice class.
-// Copyright (C) 1997-1999 Free Software Foundation, Inc.
+// Copyright (C) 1997-2001 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
@@ -30,7 +30,9 @@
// Written by Gabriel Dos Reis <Gabriel.Dos-Reis@DPTMaths.ENS-Cachan.Fr>
#ifndef _CPP_BITS_GSLICE_H
-#define _CPP_BITS_GSLICE_H
+#define _CPP_BITS_GSLICE_H 1
+
+#pragma GCC system_header
namespace std {
diff --git a/libstdc++-v3/include/bits/gslice_array.h b/libstdc++-v3/include/bits/gslice_array.h
index 23a1f6d438b..3e2d12fd04d 100644
--- a/libstdc++-v3/include/bits/gslice_array.h
+++ b/libstdc++-v3/include/bits/gslice_array.h
@@ -1,6 +1,6 @@
// The template and inlines for the -*- C++ -*- gslice_array class.
-// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1997-2001 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
@@ -32,6 +32,8 @@
#ifndef _CPP_BITS_GSLICE_ARRAY
#define _CPP_BITS_GSLICE_ARRAY 1
+#pragma GCC system_header
+
namespace std {
template<typename _Tp> class gslice_array
diff --git a/libstdc++-v3/include/bits/indirect_array.h b/libstdc++-v3/include/bits/indirect_array.h
index 1ad3b911f6b..e0324b3df24 100644
--- a/libstdc++-v3/include/bits/indirect_array.h
+++ b/libstdc++-v3/include/bits/indirect_array.h
@@ -1,6 +1,6 @@
// The template and inlines for the -*- C++ -*- indirect_array class.
-// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1997-2001 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
@@ -30,7 +30,9 @@
// Written by Gabriel Dos Reis <Gabriel.Dos-Reis@DPTMaths.ENS-Cachan.Fr>
#ifndef _CPP_BITS_INDIRECT_ARRAY_H
-#define _CPP_BITS_INDIRECT_ARRAY_H
+#define _CPP_BITS_INDIRECT_ARRAY_H 1
+
+#pragma GCC system_header
namespace std {
diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h
index 12177dafe0f..801011517cf 100644
--- a/libstdc++-v3/include/bits/ios_base.h
+++ b/libstdc++-v3/include/bits/ios_base.h
@@ -34,6 +34,8 @@
#ifndef _CPP_BITS_IOSBASE_H
#define _CPP_BITS_IOSBASE_H 1
+#pragma GCC system_header
+
namespace std {
// The following definitions of bitmask types are enums, not ints,
diff --git a/libstdc++-v3/include/bits/limits_generic.h b/libstdc++-v3/include/bits/limits_generic.h
index 45fcccb12dc..e25b6723b41 100644
--- a/libstdc++-v3/include/bits/limits_generic.h
+++ b/libstdc++-v3/include/bits/limits_generic.h
@@ -1,6 +1,6 @@
// The template and inlines for the -*- C++ -*- numeric_limits classes.
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// Copyright (C) 2000-2001 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
@@ -38,6 +38,8 @@
#ifndef _CPP_NUMERIC_LIMITS
#define _CPP_NUMERIC_LIMITS 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_cfloat.h>
#include <bits/std_climits.h>
diff --git a/libstdc++-v3/include/bits/locale_facets.h b/libstdc++-v3/include/bits/locale_facets.h
index 6d71b81bd82..2340973669f 100644
--- a/libstdc++-v3/include/bits/locale_facets.h
+++ b/libstdc++-v3/include/bits/locale_facets.h
@@ -36,6 +36,8 @@
#ifndef _CPP_BITS_LOCFACETS_H
#define _CPP_BITS_LOCFACETS_H 1
+#pragma GCC system_header
+
#include <bits/std_ctime.h> // For struct tm
#include <bits/std_ios.h> // For ios_base
#ifdef _GLIBCPP_USE_WCHAR_T
diff --git a/libstdc++-v3/include/bits/localefwd.h b/libstdc++-v3/include/bits/localefwd.h
index d15afd9e9f9..6a1463885dc 100644
--- a/libstdc++-v3/include/bits/localefwd.h
+++ b/libstdc++-v3/include/bits/localefwd.h
@@ -34,6 +34,8 @@
#ifndef _CPP_BITS_LOCCORE_H
#define _CPP_BITS_LOCCORE_H 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/c++locale.h> // Defines __c_locale.
#include <bits/std_climits.h> // For CHAR_BIT
diff --git a/libstdc++-v3/include/bits/mask_array.h b/libstdc++-v3/include/bits/mask_array.h
index 5a15f7a5e97..2693564a0af 100644
--- a/libstdc++-v3/include/bits/mask_array.h
+++ b/libstdc++-v3/include/bits/mask_array.h
@@ -1,6 +1,6 @@
// The template and inlines for the -*- C++ -*- mask_array class.
-// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1997-2001, 2000 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
@@ -32,6 +32,8 @@
#ifndef _CPP_BITS_MASK_ARRAY_H
#define _CPP_BITS_MASK_ARRAY_H 1
+#pragma GCC system_header
+
namespace std {
template <class _Tp> class mask_array
diff --git a/libstdc++-v3/include/bits/sbuf_iter.h b/libstdc++-v3/include/bits/sbuf_iter.h
index 7a0e1d5db22..351c8c9bce2 100644
--- a/libstdc++-v3/include/bits/sbuf_iter.h
+++ b/libstdc++-v3/include/bits/sbuf_iter.h
@@ -1,6 +1,6 @@
// Streambuf iterators
-// Copyright (C) 1997-1999 Free Software Foundation, Inc.
+// Copyright (C) 1997-2001 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
@@ -32,6 +32,8 @@
#ifndef _CPP_BITS_SBUF_ITER_H
#define _CPP_BITS_SBUF_ITER_H 1
+#pragma GCC system_header
+
namespace std
{
diff --git a/libstdc++-v3/include/bits/sequence_concepts.h b/libstdc++-v3/include/bits/sequence_concepts.h
index af582fb3345..f251e2e26eb 100644
--- a/libstdc++-v3/include/bits/sequence_concepts.h
+++ b/libstdc++-v3/include/bits/sequence_concepts.h
@@ -11,8 +11,10 @@
* purpose. It is provided "as is" without express or implied warranty.
*/
-#ifndef STL_SEQUENCE_CONCEPTS_H
-#define STL_SEQUENCE_CONCEPTS_H
+#ifndef _STL_SEQUENCE_CONCEPTS_H
+#define _STL_SEQUENCE_CONCEPTS_H 1
+
+#pragma GCC system_header
#include <bits/container_concepts.h>
@@ -201,4 +203,4 @@ _BackInsertionSequence_requirement_violation(_BackInsertionSequence __s) {
#endif /* if __STL_USE_CONCEPT_CHECKS */
-#endif /* STL_SEQUENCE_CONCEPTS_H */
+#endif /* _STL_SEQUENCE_CONCEPTS_H */
diff --git a/libstdc++-v3/include/bits/slice.h b/libstdc++-v3/include/bits/slice.h
index 3e4f7a743f6..113ff9b85c7 100644
--- a/libstdc++-v3/include/bits/slice.h
+++ b/libstdc++-v3/include/bits/slice.h
@@ -30,7 +30,9 @@
// Written by Gabriel Dos Reis <Gabriel.Dos-Reis@DPTMaths.ENS-Cachan.Fr>
#ifndef _CPP_BITS_SLICE_H
-#define _CPP_BITS_SLICE_H
+#define _CPP_BITS_SLICE_H 1
+
+#pragma GCC system_header
namespace std {
diff --git a/libstdc++-v3/include/bits/slice_array.h b/libstdc++-v3/include/bits/slice_array.h
index 4681cb590dc..d016a062197 100644
--- a/libstdc++-v3/include/bits/slice_array.h
+++ b/libstdc++-v3/include/bits/slice_array.h
@@ -32,6 +32,8 @@
#ifndef _CPP_BITS_SLICE_ARRAY_H
#define _CPP_BITS_SLICE_ARRAY_H 1
+#pragma GCC system_header
+
namespace std {
template<typename _Tp>
diff --git a/libstdc++-v3/include/bits/std_algorithm.h b/libstdc++-v3/include/bits/std_algorithm.h
index 3f084265506..4079cf3665d 100644
--- a/libstdc++-v3/include/bits/std_algorithm.h
+++ b/libstdc++-v3/include/bits/std_algorithm.h
@@ -27,6 +27,8 @@
#ifndef _CPP_ALGORITHM
#define _CPP_ALGORITHM 1
+#pragma GCC system_header
+
#include <bits/stl_algobase.h>
#include <bits/stl_construct.h>
#include <bits/stl_uninitialized.h>
diff --git a/libstdc++-v3/include/bits/std_bitset.h b/libstdc++-v3/include/bits/std_bitset.h
index d4bf10c45e0..0614e01995e 100644
--- a/libstdc++-v3/include/bits/std_bitset.h
+++ b/libstdc++-v3/include/bits/std_bitset.h
@@ -14,6 +14,8 @@
#ifndef __SGI_STL_BITSET
#define __SGI_STL_BITSET
+#pragma GCC system_header
+
// A bitset of size N has N % (sizeof(unsigned long) * CHAR_BIT) unused
// bits. (They are the high- order bits in the highest word.) It is
// a class invariant of class bitset<> that those unused bits are
diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h
index 1cc836e40dc..463cd6c06f6 100644
--- a/libstdc++-v3/include/bits/std_complex.h
+++ b/libstdc++-v3/include/bits/std_complex.h
@@ -37,6 +37,8 @@
#ifndef _CPP_COMPLEX
#define _CPP_COMPLEX 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_cmath.h>
#include <bits/std_iosfwd.h>
diff --git a/libstdc++-v3/include/bits/std_deque.h b/libstdc++-v3/include/bits/std_deque.h
index 9276294f9b7..f8760a51ad9 100644
--- a/libstdc++-v3/include/bits/std_deque.h
+++ b/libstdc++-v3/include/bits/std_deque.h
@@ -27,6 +27,8 @@
#ifndef _CPP_DEQUE
#define _CPP_DEQUE 1
+#pragma GCC system_header
+
#include <bits/functexcept.h>
#include <bits/stl_algobase.h>
#include <bits/stl_alloc.h>
diff --git a/libstdc++-v3/include/bits/std_fstream.h b/libstdc++-v3/include/bits/std_fstream.h
index 0860650a4b1..98740f54d52 100644
--- a/libstdc++-v3/include/bits/std_fstream.h
+++ b/libstdc++-v3/include/bits/std_fstream.h
@@ -34,6 +34,8 @@
#ifndef _CPP_FSTREAM
#define _CPP_FSTREAM 1
+#pragma GCC system_header
+
#include <bits/std_istream.h>
#include <bits/std_ostream.h>
#include <bits/basic_file.h>
diff --git a/libstdc++-v3/include/bits/std_functional.h b/libstdc++-v3/include/bits/std_functional.h
index 0336c2aedab..02053356861 100644
--- a/libstdc++-v3/include/bits/std_functional.h
+++ b/libstdc++-v3/include/bits/std_functional.h
@@ -13,7 +13,9 @@
*/
#ifndef _CPP_FUNCTIONAL
-#define _CPP_FUNCTIONAL
+#define _CPP_FUNCTIONAL 1
+
+#pragma GCC system_header
#include <bits/stl_config.h>
#include <bits/std_cstddef.h>
diff --git a/libstdc++-v3/include/bits/std_iomanip.h b/libstdc++-v3/include/bits/std_iomanip.h
index 6fa49386b67..0134a631584 100644
--- a/libstdc++-v3/include/bits/std_iomanip.h
+++ b/libstdc++-v3/include/bits/std_iomanip.h
@@ -34,6 +34,8 @@
#ifndef _CPP_IOMANIP
#define _CPP_IOMANIP 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_istream.h>
#include <bits/std_functional.h>
diff --git a/libstdc++-v3/include/bits/std_ios.h b/libstdc++-v3/include/bits/std_ios.h
index 1471c1ca619..b88f4fc975a 100644
--- a/libstdc++-v3/include/bits/std_ios.h
+++ b/libstdc++-v3/include/bits/std_ios.h
@@ -34,6 +34,8 @@
#ifndef _CPP_IOS
#define _CPP_IOS 1
+#pragma GCC system_header
+
#include <bits/std_iosfwd.h>
#include <exception> // For ios_base::failure
#include <bits/char_traits.h> // For char_traits, streamoff, streamsize, fpos
diff --git a/libstdc++-v3/include/bits/std_iosfwd.h b/libstdc++-v3/include/bits/std_iosfwd.h
index dc28c863606..9d5146c9eca 100644
--- a/libstdc++-v3/include/bits/std_iosfwd.h
+++ b/libstdc++-v3/include/bits/std_iosfwd.h
@@ -34,6 +34,8 @@
#ifndef _CPP_IOSFWD
#define _CPP_IOSFWD 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_cwchar.h> // For mbstate_t
#include <bits/stringfwd.h> // For string forward declarations.
diff --git a/libstdc++-v3/include/bits/std_iostream.h b/libstdc++-v3/include/bits/std_iostream.h
index 191e09d03ec..8c1411f5d50 100644
--- a/libstdc++-v3/include/bits/std_iostream.h
+++ b/libstdc++-v3/include/bits/std_iostream.h
@@ -34,6 +34,8 @@
#ifndef _CPP_IOSTREAM
#define _CPP_IOSTREAM 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_ostream.h>
#include <bits/std_istream.h>
diff --git a/libstdc++-v3/include/bits/std_istream.h b/libstdc++-v3/include/bits/std_istream.h
index 4a0f6602d02..4c93f560960 100644
--- a/libstdc++-v3/include/bits/std_istream.h
+++ b/libstdc++-v3/include/bits/std_istream.h
@@ -34,6 +34,8 @@
#ifndef _CPP_ISTREAM
#define _CPP_ISTREAM 1
+#pragma GCC system_header
+
#include <bits/std_ios.h>
#include <bits/std_limits.h> // For numeric_limits
diff --git a/libstdc++-v3/include/bits/std_iterator.h b/libstdc++-v3/include/bits/std_iterator.h
index 65eda060737..bbb750583dc 100644
--- a/libstdc++-v3/include/bits/std_iterator.h
+++ b/libstdc++-v3/include/bits/std_iterator.h
@@ -27,6 +27,8 @@
#ifndef _CPP_ITERATOR
#define _CPP_ITERATOR 1
+#pragma GCC system_header
+
#include <bits/stl_config.h>
#include <bits/std_cstddef.h>
#include <bits/std_iosfwd.h>
diff --git a/libstdc++-v3/include/bits/std_list.h b/libstdc++-v3/include/bits/std_list.h
index eaf1258cca6..23cbf7b94a6 100644
--- a/libstdc++-v3/include/bits/std_list.h
+++ b/libstdc++-v3/include/bits/std_list.h
@@ -27,6 +27,8 @@
#ifndef _CPP_LIST
#define _CPP_LIST 1
+#pragma GCC system_header
+
#include <bits/stl_algobase.h>
#include <bits/stl_alloc.h>
#include <bits/stl_construct.h>
diff --git a/libstdc++-v3/include/bits/std_locale.h b/libstdc++-v3/include/bits/std_locale.h
index 739e755a826..1b3b58f22d9 100644
--- a/libstdc++-v3/include/bits/std_locale.h
+++ b/libstdc++-v3/include/bits/std_locale.h
@@ -34,6 +34,8 @@
#ifndef _CPP_LOCALE
#define _CPP_LOCALE 1
+#pragma GCC system_header
+
#include <bits/localefwd.h>
#include <bits/locale_facets.h>
#include <bits/locale_facets.tcc>
diff --git a/libstdc++-v3/include/bits/std_map.h b/libstdc++-v3/include/bits/std_map.h
index d7fe92d3ee0..45f75ef89c3 100644
--- a/libstdc++-v3/include/bits/std_map.h
+++ b/libstdc++-v3/include/bits/std_map.h
@@ -27,6 +27,8 @@
#ifndef _CPP_MAP
#define _CPP_MAP 1
+#pragma GCC system_header
+
#ifndef _CPP_BITS_STL_TREE_H
#include <bits/stl_tree.h>
#endif
diff --git a/libstdc++-v3/include/bits/std_memory.h b/libstdc++-v3/include/bits/std_memory.h
index 5ee126bd8e9..49b08ad7e7b 100644
--- a/libstdc++-v3/include/bits/std_memory.h
+++ b/libstdc++-v3/include/bits/std_memory.h
@@ -15,6 +15,8 @@
#ifndef _CPP_MEMORY
#define _CPP_MEMORY 1
+#pragma GCC system_header
+
#include <bits/stl_algobase.h>
#include <bits/stl_alloc.h>
#include <bits/stl_construct.h>
diff --git a/libstdc++-v3/include/bits/std_numeric.h b/libstdc++-v3/include/bits/std_numeric.h
index e9cd42de828..795cdd2054a 100644
--- a/libstdc++-v3/include/bits/std_numeric.h
+++ b/libstdc++-v3/include/bits/std_numeric.h
@@ -27,6 +27,8 @@
#ifndef _CPP_NUMERIC
#define _CPP_NUMERIC 1
+#pragma GCC system_header
+
#include <bits/stl_config.h>
#include <bits/std_cstddef.h>
#include <bits/std_iterator.h>
diff --git a/libstdc++-v3/include/bits/std_ostream.h b/libstdc++-v3/include/bits/std_ostream.h
index bec1f15e405..2666b3c4b0b 100644
--- a/libstdc++-v3/include/bits/std_ostream.h
+++ b/libstdc++-v3/include/bits/std_ostream.h
@@ -34,6 +34,8 @@
#ifndef _CPP_OSTREAM
#define _CPP_OSTREAM 1
+#pragma GCC system_header
+
#include <bits/std_ios.h>
namespace std {
diff --git a/libstdc++-v3/include/bits/std_queue.h b/libstdc++-v3/include/bits/std_queue.h
index 198b2c03508..e15a3a20e53 100644
--- a/libstdc++-v3/include/bits/std_queue.h
+++ b/libstdc++-v3/include/bits/std_queue.h
@@ -27,6 +27,8 @@
#ifndef _CPP_QUEUE
#define _CPP_QUEUE 1
+#pragma GCC system_header
+
#include <bits/stl_algobase.h>
#include <bits/stl_alloc.h>
#include <bits/stl_construct.h>
diff --git a/libstdc++-v3/include/bits/std_set.h b/libstdc++-v3/include/bits/std_set.h
index 7a5f5c5b4ec..ea8c8d9ba02 100644
--- a/libstdc++-v3/include/bits/std_set.h
+++ b/libstdc++-v3/include/bits/std_set.h
@@ -27,6 +27,8 @@
#ifndef _CPP_SET
#define _CPP_SET 1
+#pragma GCC system_header
+
#ifndef _CPP_BITS_STL_TREE_H /* XXX is this guard needed? */
#include <bits/stl_tree.h>
#endif
diff --git a/libstdc++-v3/include/bits/std_sstream.h b/libstdc++-v3/include/bits/std_sstream.h
index f3207110d2d..bb00ba55506 100644
--- a/libstdc++-v3/include/bits/std_sstream.h
+++ b/libstdc++-v3/include/bits/std_sstream.h
@@ -34,6 +34,8 @@
#ifndef _CPP_SSTREAM
#define _CPP_SSTREAM 1
+#pragma GCC system_header
+
#include <bits/std_istream.h>
#include <bits/std_ostream.h>
diff --git a/libstdc++-v3/include/bits/std_stack.h b/libstdc++-v3/include/bits/std_stack.h
index 53e7e21f0ec..2ba0d8c2405 100644
--- a/libstdc++-v3/include/bits/std_stack.h
+++ b/libstdc++-v3/include/bits/std_stack.h
@@ -27,6 +27,8 @@
#ifndef _CPP_STACK
#define _CPP_STACK 1
+#pragma GCC system_header
+
#include <bits/stl_algobase.h>
#include <bits/stl_alloc.h>
#include <bits/stl_construct.h>
diff --git a/libstdc++-v3/include/bits/std_stdexcept.h b/libstdc++-v3/include/bits/std_stdexcept.h
index b9c5dccf74a..b354487e7eb 100644
--- a/libstdc++-v3/include/bits/std_stdexcept.h
+++ b/libstdc++-v3/include/bits/std_stdexcept.h
@@ -34,6 +34,8 @@
#ifndef _CPP_STDEXCEPT
#define _CPP_STDEXCEPT 1
+#pragma GCC system_header
+
#include <exception>
#include <bits/stringfwd.h>
diff --git a/libstdc++-v3/include/bits/std_streambuf.h b/libstdc++-v3/include/bits/std_streambuf.h
index 2e3c6dc1d2b..e1b078436eb 100644
--- a/libstdc++-v3/include/bits/std_streambuf.h
+++ b/libstdc++-v3/include/bits/std_streambuf.h
@@ -34,6 +34,8 @@
#ifndef _CPP_STREAMBUF
#define _CPP_STREAMBUF 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_iosfwd.h>
#include <bits/std_cstdio.h> // For SEEK_SET, SEEK_CUR, SEEK_END
diff --git a/libstdc++-v3/include/bits/std_string.h b/libstdc++-v3/include/bits/std_string.h
index 0a2da3ae729..a4b6d9e426d 100644
--- a/libstdc++-v3/include/bits/std_string.h
+++ b/libstdc++-v3/include/bits/std_string.h
@@ -34,6 +34,8 @@
#ifndef _CPP_STRING
#define _CPP_STRING 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/stringfwd.h>
#include <bits/char_traits.h>
diff --git a/libstdc++-v3/include/bits/std_utility.h b/libstdc++-v3/include/bits/std_utility.h
index e10dae35b6a..055acf13217 100644
--- a/libstdc++-v3/include/bits/std_utility.h
+++ b/libstdc++-v3/include/bits/std_utility.h
@@ -27,6 +27,8 @@
#ifndef _CPP_UTILITY
#define _CPP_UTILITY 1
+#pragma GCC system_header
+
#include <bits/stl_config.h>
#include <bits/stl_relops.h>
#include <bits/stl_pair.h>
diff --git a/libstdc++-v3/include/bits/std_valarray.h b/libstdc++-v3/include/bits/std_valarray.h
index 9b45cdf1884..45bd8fb0f90 100644
--- a/libstdc++-v3/include/bits/std_valarray.h
+++ b/libstdc++-v3/include/bits/std_valarray.h
@@ -32,6 +32,8 @@
#ifndef _CPP_VALARRAY
#define _CPP_VALARRAY 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/std_cstddef.h>
#include <bits/std_cmath.h>
diff --git a/libstdc++-v3/include/bits/std_vector.h b/libstdc++-v3/include/bits/std_vector.h
index e3613c383d1..6b846ad2c9e 100644
--- a/libstdc++-v3/include/bits/std_vector.h
+++ b/libstdc++-v3/include/bits/std_vector.h
@@ -27,6 +27,8 @@
#ifndef _CPP_VECTOR
#define _CPP_VECTOR 1
+#pragma GCC system_header
+
#include <bits/functexcept.h>
#include <bits/stl_algobase.h>
#include <bits/stl_alloc.h>
diff --git a/libstdc++-v3/include/bits/stringfwd.h b/libstdc++-v3/include/bits/stringfwd.h
index 020257437ff..44f9a77c873 100644
--- a/libstdc++-v3/include/bits/stringfwd.h
+++ b/libstdc++-v3/include/bits/stringfwd.h
@@ -34,6 +34,8 @@
#ifndef _CPP_BITS_STRINGFWD_H
#define _CPP_BITS_STRINGFWD_H 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
namespace std
diff --git a/libstdc++-v3/include/bits/type_traits.h b/libstdc++-v3/include/bits/type_traits.h
index dbcaa2a619f..fa61137a3d7 100644
--- a/libstdc++-v3/include/bits/type_traits.h
+++ b/libstdc++-v3/include/bits/type_traits.h
@@ -15,6 +15,8 @@
#ifndef _CPP_BITS_TYPE_TRAITS_H
#define _CPP_BITS_TYPE_TRAITS_H 1
+#pragma GCC system_header
+
#ifndef _CPP_BITS_STL_CONFIG_H
#include <bits/stl_config.h>
#endif
diff --git a/libstdc++-v3/include/bits/valarray_array.h b/libstdc++-v3/include/bits/valarray_array.h
index a97bec9856f..741f646d2b0 100644
--- a/libstdc++-v3/include/bits/valarray_array.h
+++ b/libstdc++-v3/include/bits/valarray_array.h
@@ -32,6 +32,8 @@
#ifndef _CPP_BITS_ARRAY_H
#define _CPP_BITS_ARRAY_H 1
+#pragma GCC system_header
+
#include <bits/c++config.h>
#include <bits/cpp_type_traits.h>
#include <bits/std_cstdlib.h>
diff --git a/libstdc++-v3/include/bits/valarray_meta.h b/libstdc++-v3/include/bits/valarray_meta.h
index da4c93f95cd..be6a30a94b3 100644
--- a/libstdc++-v3/include/bits/valarray_meta.h
+++ b/libstdc++-v3/include/bits/valarray_meta.h
@@ -32,6 +32,8 @@
#ifndef _CPP_VALARRAY_META_H
#define _CPP_VALARRAY_META_H 1
+#pragma GCC system_header
+
namespace std {
//
OpenPOWER on IntegriCloud