commit 796ff654329e8b58ea1455552501a110e821ee3a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   2024-02-08T13:35:27+01:00

    lang/gcc14-devel: apply fixes for plugins

diff --git a/lang/gcc14-devel/files/patch-gcc_jit_dummy-frontend.cc b/lang/gcc14-devel/files/patch-gcc_jit_dummy-frontend.cc
new file mode 100644
index 000000000000..db708c731596
--- /dev/null
+++ b/lang/gcc14-devel/files/patch-gcc_jit_dummy-frontend.cc
@@ -0,0 +1,11 @@
+--- gcc/jit/dummy-frontend.cc.orig	2024-01-14 22:32:46 UTC
++++ gcc/jit/dummy-frontend.cc
+@@ -18,6 +18,8 @@ along with GCC; see the file COPYING3.  If not see
+ <http://www.gnu.org/licenses/>.  */
+ 
+ #include "config.h"
++#define INCLUDE_STRING
++#define INCLUDE_VECTOR
+ #include "system.h"
+ #include "coretypes.h"
+ #include "jit-playback.h"
diff --git a/lang/gcc14-devel/files/patch-gcc_jit_jit-builtins.cc b/lang/gcc14-devel/files/patch-gcc_jit_jit-builtins.cc
new file mode 100644
index 000000000000..1840caaad2d3
--- /dev/null
+++ b/lang/gcc14-devel/files/patch-gcc_jit_jit-builtins.cc
@@ -0,0 +1,11 @@
+--- gcc/jit/jit-builtins.cc.orig	2024-01-14 22:32:46 UTC
++++ gcc/jit/jit-builtins.cc
+@@ -18,6 +18,8 @@ along with GCC; see the file COPYING3.  If not see
+ <http://www.gnu.org/licenses/>.  */
+ 
+ #include "config.h"
++#define INCLUDE_STRING
++#define INCLUDE_VECTOR
+ #include "system.h"
+ #include "coretypes.h"
+ #include "target.h"
diff --git a/lang/gcc14-devel/files/patch-gcc_jit_jit-playback.cc b/lang/gcc14-devel/files/patch-gcc_jit_jit-playback.cc
new file mode 100644
index 000000000000..f352011dfcce
--- /dev/null
+++ b/lang/gcc14-devel/files/patch-gcc_jit_jit-playback.cc
@@ -0,0 +1,11 @@
+--- gcc/jit/jit-playback.cc.orig	2024-01-14 22:32:46 UTC
++++ gcc/jit/jit-playback.cc
+@@ -20,6 +20,8 @@ along with GCC; see the file COPYING3.  If not see
+ 
+ #include "config.h"
+ #define INCLUDE_MUTEX
++#define INCLUDE_STRING
++#define INCLUDE_VECTOR
+ #include "libgccjit.h"
+ #include "system.h"
+ #include "coretypes.h"
diff --git a/lang/gcc14-devel/files/patch-gcc_jit_jit-recording.cc b/lang/gcc14-devel/files/patch-gcc_jit_jit-recording.cc
new file mode 100644
index 000000000000..15e456fcb923
--- /dev/null
+++ b/lang/gcc14-devel/files/patch-gcc_jit_jit-recording.cc
@@ -0,0 +1,11 @@
+--- gcc/jit/jit-recording.cc.orig	2024-01-14 22:32:46 UTC
++++ gcc/jit/jit-recording.cc
+@@ -20,6 +20,8 @@ along with GCC; see the file COPYING3.  If not see
+ 
+ #include "config.h"
+ #define INCLUDE_SSTREAM
++#define INCLUDE_STRING
++#define INCLUDE_VECTOR
+ #include "system.h"
+ #include "coretypes.h"
+ #include "tm.h"
diff --git a/lang/gcc14-devel/files/patch-gcc_jit_libgccjit.cc b/lang/gcc14-devel/files/patch-gcc_jit_libgccjit.cc
new file mode 100644
index 000000000000..ca1b4c27e0c5
--- /dev/null
+++ b/lang/gcc14-devel/files/patch-gcc_jit_libgccjit.cc
@@ -0,0 +1,11 @@
+--- gcc/jit/libgccjit.cc.orig	2024-01-14 22:32:46 UTC
++++ gcc/jit/libgccjit.cc
+@@ -20,6 +20,8 @@ along with GCC; see the file COPYING3.  If not see
+ 
+ #include "config.h"
+ #define INCLUDE_MUTEX
++#define INCLUDE_STRING
++#define INCLUDE_VECTOR
+ #include "system.h"
+ #include "coretypes.h"
+ #include "timevar.h"
