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 f41e1adf0bd51b9077779087a51ae8fc28e2aa4a..837c874a544ee2ea0095f6728de0a6fa52d85a6e 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 3349d6cfd565af7897b0ccf465bd2e46c87f2075..1c112703c1be6bb5079e344a475dd91a3c81bac5 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