Re: [PATCH] ipa: Fix build on MacOS

2025-09-07 Thread Iain Sandoe
Hi Simon, > On 6 Sep 2025, at 16:33, Simon Martin wrote: > > The build is broken on MacOS since r16-3581-g1da3c4d90e678a because > ipa-inline-transform.cc uses std::max but does not include . Which only seems to fire when the bootstrap compiler is clang (which I do not often do - since I’m usua

[PATCH] ipa: Fix build on MacOS

2025-09-07 Thread Simon Martin
The build is broken on MacOS since r16-3581-g1da3c4d90e678a because ipa-inline-transform.cc uses std::max 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: * ipa-inline-transform.cc: Def

Re: [PATCH] ipa: Fix build on MacOS

2025-09-06 Thread Simon Martin
Hi Iain, On Sat Sep 6, 2025 at 6:44 PM CEST, Iain Sandoe wrote: > Hi Simon, > >> On 6 Sep 2025, at 16:33, Simon Martin wrote: >> >> The build is broken on MacOS since r16-3581-g1da3c4d90e678a because >> ipa-inline-transform.cc uses std::max but does not include . > > Which only seems to fire when