https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80870

--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Right, thanks for checking.  Can you please try out this patch:

Index: gcc/config/sh/sh_optimize_sett_clrt.cc
===================================================================
--- gcc/config/sh/sh_optimize_sett_clrt.cc      (revision 256576)
+++ gcc/config/sh/sh_optimize_sett_clrt.cc      (working copy)
@@ -18,6 +18,8 @@
 <http://www.gnu.org/licenses/>.  */

 #include "config.h"
+#define INCLUDE_ALGORITHM
+#define INCLUDE_VECTOR
 #include "system.h"
 #include "coretypes.h"
 #include "backend.h"
@@ -27,9 +29,6 @@
 #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

Reply via email to