Commit 541a9b10 by Jonathan Wakely Committed by Jonathan Wakely

libstdc++/71073 add system_header pragma to Debug Mode headers

	PR libstdc++/71073
	* include/debug/bitset: Add #pragma GCC system_header.
	* include/debug/deque: Likewise.
	* include/debug/list: Likewise.
	* include/debug/map: Likewise.
	* include/debug/set: Likewise.
	* include/debug/string: Likewise.
	* include/debug/unordered_map: Likewise.
	* include/debug/unordered_set: Likewise.
	* include/debug/vector: Likewise.
	* include/debug/functions.h: Adjust whitespace.

From-SVN: r236211
parent ac3d02e2
2016-05-13 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/71073
* include/debug/bitset: Add #pragma GCC system_header.
* include/debug/deque: Likewise.
* include/debug/list: Likewise.
* include/debug/map: Likewise.
* include/debug/set: Likewise.
* include/debug/string: Likewise.
* include/debug/unordered_map: Likewise.
* include/debug/unordered_set: Likewise.
* include/debug/vector: Likewise.
* include/debug/functions.h: Adjust whitespace.
2016-05-12 Jonathan Wakely <jwakely@redhat.com> 2016-05-12 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/71081 PR libstdc++/71081
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_BITSET #ifndef _GLIBCXX_DEBUG_BITSET
#define _GLIBCXX_DEBUG_BITSET #define _GLIBCXX_DEBUG_BITSET
#pragma GCC system_header
#include <bitset> #include <bitset>
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_iterator.h> #include <debug/safe_iterator.h>
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_DEQUE #ifndef _GLIBCXX_DEBUG_DEQUE
#define _GLIBCXX_DEBUG_DEQUE 1 #define _GLIBCXX_DEBUG_DEQUE 1
#pragma GCC system_header
#include <deque> #include <deque>
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_container.h> #include <debug/safe_container.h>
......
...@@ -29,11 +29,10 @@ ...@@ -29,11 +29,10 @@
#ifndef _GLIBCXX_DEBUG_FUNCTIONS_H #ifndef _GLIBCXX_DEBUG_FUNCTIONS_H
#define _GLIBCXX_DEBUG_FUNCTIONS_H 1 #define _GLIBCXX_DEBUG_FUNCTIONS_H 1
#include <bits/move.h> // for __addressof #include <bits/move.h> // for __addressof
#include <bits/stl_function.h> // for less #include <bits/stl_function.h> // for less
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
# include <type_traits> // for is_lvalue_reference and # include <type_traits> // for is_lvalue_reference and conditional.
// conditional.
#endif #endif
#include <debug/helper_functions.h> #include <debug/helper_functions.h>
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_LIST #ifndef _GLIBCXX_DEBUG_LIST
#define _GLIBCXX_DEBUG_LIST 1 #define _GLIBCXX_DEBUG_LIST 1
#pragma GCC system_header
#include <list> #include <list>
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_container.h> #include <debug/safe_container.h>
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_MAP #ifndef _GLIBCXX_DEBUG_MAP
#define _GLIBCXX_DEBUG_MAP 1 #define _GLIBCXX_DEBUG_MAP 1
#pragma GCC system_header
#include <map> #include <map>
#include <debug/map.h> #include <debug/map.h>
#include <debug/multimap.h> #include <debug/multimap.h>
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_SET #ifndef _GLIBCXX_DEBUG_SET
#define _GLIBCXX_DEBUG_SET 1 #define _GLIBCXX_DEBUG_SET 1
#pragma GCC system_header
#include <set> #include <set>
#include <debug/set.h> #include <debug/set.h>
#include <debug/multiset.h> #include <debug/multiset.h>
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_STRING #ifndef _GLIBCXX_DEBUG_STRING
#define _GLIBCXX_DEBUG_STRING 1 #define _GLIBCXX_DEBUG_STRING 1
#pragma GCC system_header
#include <string> #include <string>
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
#include <debug/safe_container.h> #include <debug/safe_container.h>
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_UNORDERED_MAP #ifndef _GLIBCXX_DEBUG_UNORDERED_MAP
#define _GLIBCXX_DEBUG_UNORDERED_MAP 1 #define _GLIBCXX_DEBUG_UNORDERED_MAP 1
#pragma GCC system_header
#if __cplusplus < 201103L #if __cplusplus < 201103L
# include <bits/c++0x_warning.h> # include <bits/c++0x_warning.h>
#else #else
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_UNORDERED_SET #ifndef _GLIBCXX_DEBUG_UNORDERED_SET
#define _GLIBCXX_DEBUG_UNORDERED_SET 1 #define _GLIBCXX_DEBUG_UNORDERED_SET 1
#pragma GCC system_header
#if __cplusplus < 201103L #if __cplusplus < 201103L
# include <bits/c++0x_warning.h> # include <bits/c++0x_warning.h>
#else #else
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#ifndef _GLIBCXX_DEBUG_VECTOR #ifndef _GLIBCXX_DEBUG_VECTOR
#define _GLIBCXX_DEBUG_VECTOR 1 #define _GLIBCXX_DEBUG_VECTOR 1
#pragma GCC system_header
#include <vector> #include <vector>
#include <utility> #include <utility>
#include <debug/safe_sequence.h> #include <debug/safe_sequence.h>
......
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