mirror of
				https://github.com/cjdelisle/openwrt.git
				synced 2025-10-30 16:05:47 +00:00 
			
		
		
		
	Refresh all GCC patches. Link: https://github.com/openwrt/openwrt/pull/18688 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 5213047b1d50af63dfabb5e5649821a6cb157e33 Mon Sep 17 00:00:00 2001
 | ||
| From: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
 | ||
| Date: Sat, 16 Mar 2024 09:50:00 +0100
 | ||
| Subject: [PATCH] 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.
 | ||
| ---
 | ||
|  libcc1/libcc1plugin.cc | 3 +--
 | ||
|  libcc1/libcp1plugin.cc | 3 +--
 | ||
|  2 files changed, 2 insertions(+), 4 deletions(-)
 | ||
| 
 | ||
| --- a/libcc1/libcc1plugin.cc
 | ||
| +++ b/libcc1/libcc1plugin.cc
 | ||
| @@ -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;
 | ||
|  
 | ||
|  
 | ||
| --- a/libcc1/libcp1plugin.cc
 | ||
| +++ b/libcc1/libcp1plugin.cc
 | ||
| @@ -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;
 | ||
|  
 | ||
|  
 |