]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rtl-ssa: Define INCLUDE_ARRAY
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 25 Jul 2024 12:25:32 +0000 (13:25 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 25 Jul 2024 12:25:32 +0000 (13:25 +0100)
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.

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

index e97c26682d07617c968d992d284940242fc84544..3af8c00d8462ad6b6e1b5ed085bb699722b051a2 100644 (file)
@@ -63,6 +63,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index 99324423ee5aa31dfa336e17312a0bc1ccd24a19..5f269d029b45704776968815eaeedd51426f48e0 100644 (file)
@@ -40,6 +40,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index 71d6f6a04957bdfd6b66c1b97e43876e5a1686df..caf5a93b234e18cc72cd400d3b056b7254bd417c 100644 (file)
@@ -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"
index bbea2b5fd4f31538945cb284fbbd415deaa5dc53..017efa8bc17ed78696f4c8cfee7200d75b419b6d 100644 (file)
@@ -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"
index a1ede418c21eb01f9d5a49f5b6c8aa42c21f382a..0cb36aae09bd6e0f686229a7cc3217bfe65405a7 100644 (file)
@@ -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"
index bfdc7a1b7492029a8479efad67cca656e60edfe6..2ebb2f146cc6a3f2480bcec60079b941c110cb3d 100644 (file)
@@ -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"
index 789d734692a80f888cc0c25cb24efa76c9d306fa..2b62e2956ede6a77fcbd2ad131972748f89e4c7e 100644 (file)
@@ -30,6 +30,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index 31d2c21c88f9a01439b4256c45ee61203510eead..cb0374f426b08edf8e346790985ad87d05f57a08 100644 (file)
@@ -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"
index 2718d97b6d944827cf1945e7abc9928a325baa49..0c0c71d8c3289945723704140c43912b1cee90d0 100644 (file)
@@ -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"
index 5450ea118d1bfdbdb0b7834093d85c428a8314fa..5e9077545a815522cd8536c487695630b516bcea 100644 (file)
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index cf4224e61ecf7dc91e3741993aa9732603a8d6d9..dfc4e7d0610d0d0e3db317cddf6f69a877ad3522 100644 (file)
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index 43c7b8e1e60584a651c5d6052542de5f323d9583..a30f000191ea7b300dfa37db005fd454559a00d0 100644 (file)
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index 8313cd6f78355843a34f699c1d0cabdd69683aa5..bffccc57aabc9a59474db9d2fdc7c68b06e4bc2c 100644 (file)
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index bc30734df89fe21a4e16f2bf1c9960d732bc6fc9..d0c3e56b8befb3dcddf43662a411a04dcd5e5b69 100644 (file)
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
index b8927f84b0965765c4b6c5ed7c0c56520952b494..38432119f334645fb309fa4c5615e5d4b3468c72 100644 (file)
@@ -19,6 +19,7 @@
 
 #define INCLUDE_ALGORITHM
 #define INCLUDE_FUNCTIONAL
+#define INCLUDE_ARRAY
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"