From 22c0dabb7c6d6205042a6c0f8f9032d7875ffe88 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Fri, 7 Mar 2025 15:30:16 +0100 Subject: [PATCH] vect: Fix build on MacOS The build is broken on MacOS since r15-7881-ge8651b80aeb86d because tree-vect-data-refs.cc uses std::min but does not include . This patch fixes it by defining INCLUDE_ALGORITHM in that file. 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 . */ +#define INCLUDE_ALGORITHM #include "config.h" #include "system.h" #include "coretypes.h" -- 2.47.2