Hi Simon, > On 6 Sep 2025, at 16:33, Simon Martin <si...@nasilyan.com> wrote: > > The build is broken on MacOS since r16-3581-g1da3c4d90e678a because > ipa-inline-transform.cc uses std::max but does not include <algorithm>.
Which only seems to fire when the bootstrap compiler is clang (which I do not often do - since I’m usually building Ada and D). > This patch fixes it by defining INCLUDE_ALGORITHM in that file. I think such patches are both “obvious” and “fixes for bootstrap” and so OK to apply. Do you have commit access or would you like me to push it for you? thanks for the patch, Iain > > 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 > >