summaryrefslogtreecommitdiff
path: root/tools/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-09-03 22:56:57 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2023-09-04 12:16:48 +0200
commit2821d3b91b5145a848eee00d7134c12b45be10f6 (patch)
tree7febffbc1f5de6554140d05ad8a50130e6592e2c /tools/gcc-plugins/gcc-common.h
parent640b59a8b0d87337fef336950e7ebf94a3344a7f (diff)
tools/gcc-plugins: fix for GCC 13
As usual, new GCC version, new small random changes in the API. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tools/gcc-plugins/gcc-common.h')
-rw-r--r--tools/gcc-plugins/gcc-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gcc-plugins/gcc-common.h b/tools/gcc-plugins/gcc-common.h
index 9f59447d63..6eaea9bf74 100644
--- a/tools/gcc-plugins/gcc-common.h
+++ b/tools/gcc-plugins/gcc-common.h
@@ -111,6 +111,10 @@
#include "varasm.h"
#include "stor-layout.h"
#include "internal-fn.h"
+#if BUILDING_GCC_VERSION >= 13000
+#include "gimple.h"
+#include "gimple-iterator.h"
+#endif
#include "gimple-expr.h"
#include "gimple-fold.h"
#include "context.h"