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. Successfully built on x86_64-apple-darwin19.6.0. gcc/ChangeLog: * ipa-inline-transform.cc: Define INCLUDE_ALGORITHM. --- gcc/ipa-inline-transform.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ipa-inline-transform.cc b/gcc/ipa-inline-transform.cc index 5c244bc17ac4..da9c9076e5f3 100644 --- a/gcc/ipa-inline-transform.cc +++ b/gcc/ipa-inline-transform.cc @@ -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" -- 2.44.0