https://gcc.gnu.org/g:d15f4b39165971f09a66cb72f38aaea5590e5219

commit r17-6604-gd15f4b39165971f09a66cb72f38aaea5590e5219
Author: Matt Jacobson <[email protected]>
Date:   Mon Nov 23 10:51:37 2026 -0700

    [PATCH v2] avr: Define INCLUDE_ALGORITHM (for std::min)
    
    Although <algorithm> was transitively included when building with
    libstdc++, that is not the case in general (including under LLVM's
    libc++).
    
    gcc/ChangeLog:
    
            * config/avr/avr.cc (INCLUDE_ALGORITHM): Define.

Diff:
---
 gcc/config/avr/avr.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc
index d6434dc77cbf..9bbcc752b25a 100644
--- a/gcc/config/avr/avr.cc
+++ b/gcc/config/avr/avr.cc
@@ -19,6 +19,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #define IN_TARGET_CODE 1
+#define INCLUDE_ALGORITHM
 
 #include "config.h"
 #include "system.h"

Reply via email to