]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libcc1: fix <vector> include
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 16 Mar 2024 08:50:00 +0000 (09:50 +0100)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 29 Jun 2024 10:15:17 +0000 (11:15 +0100)
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)

libcc1/libcc1plugin.cc
libcc1/libcp1plugin.cc

index e80ecd8f4b353b5bdd759cd3fbb688a8aa1f9563..e58fa55c0f587760ab14d0c1ec870e41c3c9b625 100644 (file)
@@ -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"
index 27a6175e34e6a234651d53a70b1f3b2bbf79275f..378c65d43c25141c13acda45e5f783e40473780f 100644 (file)
@@ -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"