]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa: Fix build on MacOS
authorSimon Martin <simon@nasilyan.com>
Sat, 6 Sep 2025 20:12:41 +0000 (22:12 +0200)
committerSimon Martin <simon@nasilyan.com>
Sat, 6 Sep 2025 20:12:41 +0000 (22:12 +0200)
The build is broken on MacOS since r16-3581-g1da3c4d90e678a because
ipa-inline-transform.cc uses std::max but does not include <algorithm>.

This patch fixes it by defining INCLUDE_ALGORITHM in that file.

gcc/ChangeLog:

* ipa-inline-transform.cc: Define INCLUDE_ALGORITHM.

gcc/ipa-inline-transform.cc

index 5c244bc17ac4ae603de1e51dad39f66cb7384219..da9c9076e5f3d8fafd1234090166be7e2b322cf1 100644 (file)
@@ -28,6 +28,7 @@ along with GCC; see the file COPYING3.  If not see
 
    The inline plan is applied on given function body by inline_transform.  */
 
+#define INCLUDE_ALGORITHM
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"