From: Oleg Endo Date: Sun, 21 Jan 2018 05:15:59 +0000 (+0000) Subject: backport: re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS) X-Git-Tag: releases/gcc-6.5.0~570 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=325c83752c93e5f29f8ba233373710ae4464e223;p=thirdparty%2Fgcc.git backport: re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS) Backport from mainline 2018-01-21 Oleg Endo PR target/80870 * config/sh/sh_optimize_sett_clrt.cc: Use INCLUDE_ALGORITHM and INCLUDE_VECTOR instead of direct includes. From-SVN: r256929 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bdd50afb226c..a2a3a9cbffd3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2018-01-21 Oleg Endo + + Backport from mainline + 2018-01-21 Oleg Endo + + PR target/80870 + * config/sh/sh_optimize_sett_clrt.cc: + Use INCLUDE_ALGORITHM and INCLUDE_VECTOR instead of direct includes. + 2018-01-16 Segher Boessenkool Backport from mainline diff --git a/gcc/config/sh/sh_optimize_sett_clrt.cc b/gcc/config/sh/sh_optimize_sett_clrt.cc index 11285dc112de..43f2e30deb2d 100644 --- a/gcc/config/sh/sh_optimize_sett_clrt.cc +++ b/gcc/config/sh/sh_optimize_sett_clrt.cc @@ -18,6 +18,8 @@ along with GCC; see the file COPYING3. If not see . */ #include "config.h" +#define INCLUDE_ALGORITHM +#define INCLUDE_VECTOR #include "system.h" #include "coretypes.h" #include "backend.h" @@ -27,9 +29,6 @@ along with GCC; see the file COPYING3. If not see #include "cfgrtl.h" #include "tree-pass.h" -#include -#include - /* 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