Re: [PATCH] vect: Fix build on MacOS

2025-03-07 Thread Richard Sandiford
Simon Martin writes: > 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. > > Successfully built on x86_64-apple-darwin19.6.0. > > gcc/ChangeLog: > >

[PATCH] vect: Fix build on MacOS

2025-03-07 Thread Simon Martin
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. Successfully built on x86_64-apple-darwin19.6.0. gcc/ChangeLog: * tree-vect-data-refs.cc: Defin