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

commit r15-2313-gd6849aa926665cbee8bf87822401ca44f881753f
Author: Richard Sandiford <richard.sandif...@arm.com>
Date:   Thu Jul 25 13:25:32 2024 +0100

    rtl-ssa: Define INCLUDE_ARRAY
    
    g:72fbd3b2b2a497dbbe6599239bd61c5624203ed0 added a use of std::array
    without explicitly forcing <array> to be included.  That didn't cause
    problems in my local builds but understandably did for some people.
    
    gcc/
            * doc/rtl.texi: Document the need to define INCLUDE_ARRAY before
            including rtl-ssa.h.
            * rtl-ssa.h: Likewise (in comment).
            * config/aarch64/aarch64-cc-fusion.cc: Add INCLUDE_ARRAY.
            * config/aarch64/aarch64-early-ra.cc: Likewise.
            * config/riscv/riscv-avlprop.cc: Likewise.
            * config/riscv/riscv-vsetvl.cc: Likewise.
            * fwprop.cc: Likewise.
            * late-combine.cc: Likewise.
            * pair-fusion.cc: Likewise.
            * rtl-ssa/accesses.cc: Likewise.
            * rtl-ssa/blocks.cc: Likewise.
            * rtl-ssa/changes.cc: Likewise.
            * rtl-ssa/functions.cc: Likewise.
            * rtl-ssa/insns.cc: Likewise.
            * rtl-ssa/movement.cc: Likewise.

Diff:
---
 gcc/config/aarch64/aarch64-cc-fusion.cc | 1 +
 gcc/config/aarch64/aarch64-early-ra.cc  | 1 +
 gcc/config/riscv/riscv-avlprop.cc       | 1 +
 gcc/config/riscv/riscv-vsetvl.cc        | 1 +
 gcc/doc/rtl.texi                        | 1 +
 gcc/fwprop.cc                           | 1 +
 gcc/late-combine.cc                     | 1 +
 gcc/pair-fusion.cc                      | 1 +
 gcc/rtl-ssa.h                           | 1 +
 gcc/rtl-ssa/accesses.cc                 | 1 +
 gcc/rtl-ssa/blocks.cc                   | 1 +
 gcc/rtl-ssa/changes.cc                  | 1 +
 gcc/rtl-ssa/functions.cc                | 1 +
 gcc/rtl-ssa/insns.cc                    | 1 +
 gcc/rtl-ssa/movement.cc                 | 1 +
 15 files changed, 15 insertions(+)

diff --git a/gcc/config/aarch64/aarch64-cc-fusion.cc 
b/gcc/config/aarch64/aarch64-cc-fusion.cc
index e97c26682d07..3af8c00d8462 100644
--- a/gcc/config/aarch64/aarch64-cc-fusion.cc
+++ b/gcc/config/aarch64/aarch64-cc-fusion.cc
@@ -63,6 +63,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/config/aarch64/aarch64-early-ra.cc 
b/gcc/config/aarch64/aarch64-early-ra.cc
index 99324423ee5a..5f269d029b45 100644
--- a/gcc/config/aarch64/aarch64-early-ra.cc
+++ b/gcc/config/aarch64/aarch64-early-ra.cc
@@ -40,6 +40,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/config/riscv/riscv-avlprop.cc 
b/gcc/config/riscv/riscv-avlprop.cc
index 71d6f6a04957..caf5a93b234e 100644
--- a/gcc/config/riscv/riscv-avlprop.cc
+++ b/gcc/config/riscv/riscv-avlprop.cc
@@ -65,6 +65,7 @@ along with GCC; see the file COPYING3.  If not see
 #define IN_TARGET_CODE 1
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 
 #include "config.h"
 #include "system.h"
diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index bbea2b5fd4f3..017efa8bc17e 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -63,6 +63,7 @@ along with GCC; see the file COPYING3.  If not see
 #define IN_TARGET_CODE 1
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 
 #include "config.h"
 #include "system.h"
diff --git a/gcc/doc/rtl.texi b/gcc/doc/rtl.texi
index a1ede418c21e..0cb36aae09bd 100644
--- a/gcc/doc/rtl.texi
+++ b/gcc/doc/rtl.texi
@@ -4405,6 +4405,7 @@ A pass that wants to use the RTL SSA form should start 
with the following:
 @smallexample
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/fwprop.cc b/gcc/fwprop.cc
index bfdc7a1b7492..2ebb2f146cc6 100644
--- a/gcc/fwprop.cc
+++ b/gcc/fwprop.cc
@@ -20,6 +20,7 @@ along with GCC; see the file COPYING3.  If not see
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/late-combine.cc b/gcc/late-combine.cc
index 789d734692a8..2b62e2956ede 100644
--- a/gcc/late-combine.cc
+++ b/gcc/late-combine.cc
@@ -30,6 +30,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/pair-fusion.cc b/gcc/pair-fusion.cc
index 31d2c21c88f9..cb0374f426b0 100644
--- a/gcc/pair-fusion.cc
+++ b/gcc/pair-fusion.cc
@@ -21,6 +21,7 @@
 #define INCLUDE_FUNCTIONAL
 #define INCLUDE_LIST
 #define INCLUDE_TYPE_TRAITS
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/rtl-ssa.h b/gcc/rtl-ssa.h
index 2718d97b6d94..0c0c71d8c328 100644
--- a/gcc/rtl-ssa.h
+++ b/gcc/rtl-ssa.h
@@ -27,6 +27,7 @@
 // Files that use this one should first have:
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/rtl-ssa/accesses.cc b/gcc/rtl-ssa/accesses.cc
index 5450ea118d1b..5e9077545a81 100644
--- a/gcc/rtl-ssa/accesses.cc
+++ b/gcc/rtl-ssa/accesses.cc
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/rtl-ssa/blocks.cc b/gcc/rtl-ssa/blocks.cc
index cf4224e61ecf..dfc4e7d0610d 100644
--- a/gcc/rtl-ssa/blocks.cc
+++ b/gcc/rtl-ssa/blocks.cc
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/rtl-ssa/changes.cc b/gcc/rtl-ssa/changes.cc
index 43c7b8e1e605..a30f000191ea 100644
--- a/gcc/rtl-ssa/changes.cc
+++ b/gcc/rtl-ssa/changes.cc
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/rtl-ssa/functions.cc b/gcc/rtl-ssa/functions.cc
index 8313cd6f7835..bffccc57aabc 100644
--- a/gcc/rtl-ssa/functions.cc
+++ b/gcc/rtl-ssa/functions.cc
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/rtl-ssa/insns.cc b/gcc/rtl-ssa/insns.cc
index bc30734df89f..d0c3e56b8bef 100644
--- a/gcc/rtl-ssa/insns.cc
+++ b/gcc/rtl-ssa/insns.cc
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
diff --git a/gcc/rtl-ssa/movement.cc b/gcc/rtl-ssa/movement.cc
index b8927f84b096..38432119f334 100644
--- a/gcc/rtl-ssa/movement.cc
+++ b/gcc/rtl-ssa/movement.cc
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"

Reply via email to