re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS)
authorOleg Endo <olegendo@gcc.gnu.org>
Sun, 21 Jan 2018 05:03:26 +0000 (05:03 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sun, 21 Jan 2018 05:03:26 +0000 (05:03 +0000)
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

gcc/ChangeLog
gcc/config/sh/sh_optimize_sett_clrt.cc

index f41e1ad..837c874 100644 (file)
@@ -1,3 +1,9 @@
+2018-01-21  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       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.
+
 2018-01-20  Richard Sandiford  <richard.sandiford@linaro.org>
 
        PR tree-optimization/83940
index 3349d6c..1c11270 100644 (file)
@@ -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