diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2024-03-16 09:50:00 +0100 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2024-06-29 11:15:17 +0100 |
commit | 378f50f4c32af5111893989bfc5a191d3aa27bb7 (patch) | |
tree | 3f543d8a1213451814086540e068638e08fe9c7a | |
parent | 5a419c22e67b30bfa10a59351c64663396a4c8f2 (diff) | |
download | gcc-378f50f4c32af5111893989bfc5a191d3aa27bb7.zip gcc-378f50f4c32af5111893989bfc5a191d3aa27bb7.tar.gz gcc-378f50f4c32af5111893989bfc5a191d3aa27bb7.tar.bz2 |
libcc1: fix <vector> include
Use INCLUDE_VECTOR before including system.h, instead of directly
including <vector>, to avoid running into poisoned identifiers.
Signed-off-by: Dimitry Andric <dimitry@andric.com>
libcc1/ChangeLog:
PR middle-end/111632
* libcc1plugin.cc: Fix include.
* libcp1plugin.cc: Fix include.
(cherry picked from commit 5213047b1d50af63dfabb5e5649821a6cb157e33)
-rw-r--r-- | libcc1/libcc1plugin.cc | 2 | ||||
-rw-r--r-- | libcc1/libcp1plugin.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libcc1/libcc1plugin.cc b/libcc1/libcc1plugin.cc index e80ecd8..e58fa55 100644 --- a/libcc1/libcc1plugin.cc +++ b/libcc1/libcc1plugin.cc @@ -31,6 +31,8 @@ #undef PACKAGE_TARNAME #undef PACKAGE_VERSION +#define INCLUDE_MEMORY +#define INCLUDE_VECTOR #include "gcc-plugin.h" #include "system.h" #include "coretypes.h" diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 27a6175..378c65d 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -32,6 +32,8 @@ #undef PACKAGE_TARNAME #undef PACKAGE_VERSION +#define INCLUDE_MEMORY +#define INCLUDE_VECTOR #include "gcc-plugin.h" #include "system.h" #include "coretypes.h" |