Add #pragma system_header to header files.

From-SVN: r39896
This commit is contained in:
Gabriel Dos Reis 2001-02-19 18:52:25 +00:00 committed by Gabriel Dos Reis
parent c81460e465
commit b0a85b861e
52 changed files with 170 additions and 14 deletions

View File

@ -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):

View File

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

View File

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

View File

@ -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 {

View File

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

View File

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

View File

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

View File

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

View File

@ -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 {

View File

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

View File

@ -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 {

View File

@ -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,

View File

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

View File

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

View File

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

View File

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

View File

@ -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
{

View File

@ -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 */

View File

@ -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 {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -34,6 +34,8 @@
#ifndef _CPP_OSTREAM
#define _CPP_OSTREAM 1
#pragma GCC system_header
#include <bits/std_ios.h>
namespace std {

View File

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

View File

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

View File

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

View File

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

View File

@ -34,6 +34,8 @@
#ifndef _CPP_STDEXCEPT
#define _CPP_STDEXCEPT 1
#pragma GCC system_header
#include <exception>
#include <bits/stringfwd.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -32,6 +32,8 @@
#ifndef _CPP_VALARRAY_META_H
#define _CPP_VALARRAY_META_H 1
#pragma GCC system_header
namespace std {
//