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.
This commit is contained in:
Francois-Xavier Coudert 2024-03-16 09:50:00 +01:00
parent 53fb2cf759
commit 5213047b1d
2 changed files with 2 additions and 4 deletions

View 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;

View 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;