diff options
author | Simon Martin <simon@nasilyan.com> | 2025-09-06 22:12:41 +0200 |
---|---|---|
committer | Simon Martin <simon@nasilyan.com> | 2025-09-06 22:12:41 +0200 |
commit | 8ab5b7f590938a878845156a8da5f25731e9dff6 (patch) | |
tree | 894879ee56291eb591bf9c966d2a033209290da1 /gcc | |
parent | 23f659f61ef1609201041035aa2c7bb624ff5dc7 (diff) | |
download | gcc-8ab5b7f590938a878845156a8da5f25731e9dff6.zip gcc-8ab5b7f590938a878845156a8da5f25731e9dff6.tar.gz gcc-8ab5b7f590938a878845156a8da5f25731e9dff6.tar.bz2 |
ipa: Fix build on MacOS
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ipa-inline-transform.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-inline-transform.cc b/gcc/ipa-inline-transform.cc index 5c244bc..da9c907 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" |