]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vect: Fix build on MacOS
authorSimon Martin <simon@nasilyan.com>
Fri, 7 Mar 2025 14:30:16 +0000 (15:30 +0100)
committerSimon Martin <simon@nasilyan.com>
Fri, 7 Mar 2025 15:14:18 +0000 (16:14 +0100)
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.

gcc/tree-vect-data-refs.cc

index 7c63916cf4f26293e6b4d06767577fa284562964..c9395e33fcdfc7deedd979c764daae93b15abace 100644 (file)
@@ -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"