Skip to contentSkip to conversation

gcc-plugins: Remove TODO_verify_il for GCC >= 16

PATCH In review Kees Cook 2 participants 2 messages Sep 20, 2025 – Sep 21, 2025 Gcc plugins

lore
Share & tools
lore

Kees Cook

author maintainer
#0 lore raw

PATCH 1/1 gcc-plugins: Remove TODO_verify_il for GCC >= 16

GCC now runs TODO_verify_il automatically[1], so it is no longer exposed to plugins. Only use the flag on GCC < 16.

---
How about like this, so it'll still work on GCC <16?
Cc: <[email protected]>

---
 scripts/gcc-plugins/gcc-common.h | 7 +++++++
 1 file changed, 7 insertions(+)
scripts/gcc-plugins/gcc-common.h +7 -0
index 6cb6d1051815..8f1b3500f8e2 100644
@@ -173,10 +173,17 @@ static inline opt_pass *get_pass_for_id(int id)
 	return g->get_passes()->get_pass_for_id(id);
 }
 
+#if BUILDING_GCC_VERSION < 16000
 #define TODO_verify_ssa TODO_verify_il
 #define TODO_verify_flow TODO_verify_il
 #define TODO_verify_stmts TODO_verify_il
 #define TODO_verify_rtl_sharing TODO_verify_il
+#else
+#define TODO_verify_ssa 0
+#define TODO_verify_flow 0
+#define TODO_verify_stmts 0
+#define TODO_verify_rtl_sharing 0
+#endif
 
 #define INSN_DELETED_P(insn) (insn)->deleted()
 
Signature · 1 line
2.34.1