diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2016-04-22 11:00:42 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@gcc.gnu.org> | 2016-04-22 11:00:42 +0000 |
commit | 2c384ad87fc1963dbb9b2092dba08f99ddf32136 (patch) | |
tree | 9794a2e25f47b38ce5b3e6e6050ff58eb1ff1167 /gcc/config/sh | |
parent | e4ccecd5d0a991e22d34a631aff2792a41fff22a (diff) | |
download | gcc-2c384ad87fc1963dbb9b2092dba08f99ddf32136.zip gcc-2c384ad87fc1963dbb9b2092dba08f99ddf32136.tar.gz gcc-2c384ad87fc1963dbb9b2092dba08f99ddf32136.tar.bz2 |
[PATCH 2/2] (header usage fix) include c++ headers in system.h
2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
* system.h (list, map, set, vector): Include conditionally.
* auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
* graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
* ipa-icf.c (INCLUDE_LIST): Define.
* config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
* config/sh/sh.c (INCLUDE_VECTOR): Define.
* config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
(INCLUDE_LIST, INCLUDE_VECTOR): Define.
* cp/logic.cc (INCLUDE_LIST): Define.
* fortran/trans-common.c (INCLUDE_MAP): Define.
From-SVN: r235362
Diffstat (limited to 'gcc/config/sh')
-rw-r--r-- | gcc/config/sh/sh.c | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh_treg_combine.cc | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 8c8fe3c..b18e59b 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -20,9 +20,9 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ #include <sstream> -#include <vector> #include "config.h" +#define INCLUDE_VECTOR #include "system.h" #include "coretypes.h" #include "backend.h" diff --git a/gcc/config/sh/sh_treg_combine.cc b/gcc/config/sh/sh_treg_combine.cc index bc1ee0e..4d40715 100644 --- a/gcc/config/sh/sh_treg_combine.cc +++ b/gcc/config/sh/sh_treg_combine.cc @@ -19,6 +19,9 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ #include "config.h" +#define INCLUDE_ALGORITHM +#define INCLUDE_LIST +#define INCLUDE_VECTOR #include "system.h" #include "coretypes.h" #include "backend.h" @@ -32,10 +35,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-pass.h" #include "expr.h" -#include <algorithm> -#include <list> -#include <vector> - /* This pass tries to optimize for example this: mov.l @(4,r4),r1 |