aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorOleg Endo <olegendo@gcc.gnu.org>2018-01-21 05:03:26 +0000
committerOleg Endo <olegendo@gcc.gnu.org>2018-01-21 05:03:26 +0000
commit218e2a54e00f70950f441ded237cba8b07466816 (patch)
treed2b3c0878ea4fe66fd1951022963d09f2edb2fb1 /gcc/config/sh
parentc6bff8ada6297866778c4ee5c49a59bf08a3b64a (diff)
downloadgcc-218e2a54e00f70950f441ded237cba8b07466816.zip
gcc-218e2a54e00f70950f441ded237cba8b07466816.tar.gz
gcc-218e2a54e00f70950f441ded237cba8b07466816.tar.bz2
re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS)
PR target/80870 * config/sh/rx/rx.c (config/sh/sh_optimize_sett_clrt.cc): Use INCLUDE_ALGORITHM and INCLUDE_VECTOR instead of direct includes. From-SVN: r256926
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/sh_optimize_sett_clrt.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/sh/sh_optimize_sett_clrt.cc b/gcc/config/sh/sh_optimize_sett_clrt.cc
index 3349d6c..1c11270 100644
--- a/gcc/config/sh/sh_optimize_sett_clrt.cc
+++ b/gcc/config/sh/sh_optimize_sett_clrt.cc
@@ -20,6 +20,8 @@ along with GCC; see the file COPYING3. If not see
#define IN_TARGET_CODE 1
#include "config.h"
+#define INCLUDE_ALGORITHM
+#define INCLUDE_VECTOR
#include "system.h"
#include "coretypes.h"
#include "backend.h"
@@ -29,9 +31,6 @@ along with GCC; see the file COPYING3. If not see
#include "cfgrtl.h"
#include "tree-pass.h"
-#include <vector>
-#include <algorithm>
-
/*
This pass tries to eliminate unnecessary sett or clrt instructions in cases
where the ccreg value is already known to be the same as the constant set