From: Simon Martin Date: Fri, 7 Mar 2025 14:30:16 +0000 (+0100) Subject: vect: Fix build on MacOS X-Git-Tag: basepoints/gcc-16~1666 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22c0dabb7c6d6205042a6c0f8f9032d7875ffe88;p=thirdparty%2Fgcc.git 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. --- 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"