https://gcc.gnu.org/g:5e968b9fe53b5f7ffde8521f1c65ebb64b4d9c43

commit r16-6467-g5e968b9fe53b5f7ffde8521f1c65ebb64b4d9c43
Author: Iain Sandoe <[email protected]>
Date:   Fri Jan 2 17:48:06 2026 +0000

    aarch64: Define INCLUDE_ALGORITHM for std::max in sve-builtins-shape.
    
    std::max needs <algorithm>, so arrange for that.
    
    gcc/ChangeLog:
    
            * config/aarch64/aarch64-sve-builtins-shapes.cc
            (INCLUDE_ALGORITHM): Define.
    
    Signed-off-by: Iain Sandoe <[email protected]>

Diff:
---
 gcc/config/aarch64/aarch64-sve-builtins-shapes.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/aarch64/aarch64-sve-builtins-shapes.cc 
b/gcc/config/aarch64/aarch64-sve-builtins-shapes.cc
index 75fc075dbff6..a40373c78dea 100644
--- a/gcc/config/aarch64/aarch64-sve-builtins-shapes.cc
+++ b/gcc/config/aarch64/aarch64-sve-builtins-shapes.cc
@@ -17,6 +17,7 @@
    along with GCC; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */
 
+#define INCLUDE_ALGORITHM
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"

Reply via email to