https://gcc.gnu.org/g:22c0dabb7c6d6205042a6c0f8f9032d7875ffe88
commit r15-7887-g22c0dabb7c6d6205042a6c0f8f9032d7875ffe88 Author: Simon Martin <si...@nasilyan.com> Date: Fri Mar 7 15:30:16 2025 +0100 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 <algorithm>. This patch fixes it by defining INCLUDE_ALGORITHM in that file. gcc/ChangeLog: * tree-vect-data-refs.cc: Define INCLUDE_ALGORITHM. Diff: --- 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 7c63916cf4f2..c9395e33fcdf 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"