]> gcc.gnu.org Git - 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)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 16 Mar 2024 08:50:00 +0000 (09:50 +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.

libcc1/libcc1plugin.cc
libcc1/libcp1plugin.cc

index 72d17c3b81c51f57ab578104b9e3c731e291bfd0..e64847466f4dfdb292a293d2ac581de916558007 100644 (file)
@@ -32,6 +32,7 @@
 #undef PACKAGE_VERSION
 
 #define INCLUDE_MEMORY
+#define INCLUDE_VECTOR
 #include "gcc-plugin.h"
 #include "system.h"
 #include "coretypes.h"
@@ -69,8 +70,6 @@
 #include "gcc-c-interface.h"
 #include "context.hh"
 
-#include <vector>
-
 using namespace cc1_plugin;
 
 \f
index 0eff7c68d29832bd5a919ab8b90bfa2169595427..da68c5d0ac1bdb266fa9525fa702d3e87a177dab 100644 (file)
@@ -33,6 +33,7 @@
 #undef PACKAGE_VERSION
 
 #define INCLUDE_MEMORY
+#define INCLUDE_VECTOR
 #include "gcc-plugin.h"
 #include "system.h"
 #include "coretypes.h"
@@ -71,8 +72,6 @@
 #include "rpc.hh"
 #include "context.hh"
 
-#include <vector>
-
 using namespace cc1_plugin;
 
 \f
This page took 0.082642 seconds and 5 git commands to generate.