The build is broken on MacOS since r15-7881-ge8651b80aeb86d because tree-vect-data-refs.cc uses std::min but does not include <algorithm>.
This patch fixes it by defining INCLUDE_ALGORITHM in that file. Successfully built on x86_64-apple-darwin19.6.0. gcc/ChangeLog: * tree-vect-data-refs.cc: Define INCLUDE_ALGORITHM. --- gcc/tree-vect-data-refs.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/tree-vect-data-refs.cc b/gcc/tree-vect-data-refs.cc index 7c63916cf4f..c9395e33fcd 100644 --- a/gcc/tree-vect-data-refs.cc +++ b/gcc/tree-vect-data-refs.cc @@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +#define INCLUDE_ALGORITHM #include "config.h" #include "system.h" #include "coretypes.h" -- 2.44.0