Skip to content

Commit fc998bc

Browse files
keesgregkh
authored andcommitted
gcc-plugins: Remove TODO_verify_il for GCC >= 16
commit a40282d upstream. GCC now runs TODO_verify_il automatically[1], so it is no longer exposed to plugins. Only use the flag on GCC < 16. Link: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8 [1] Suggested-by: Christopher Fore <csfore@posteo.net> Link: https://lore.kernel.org/r/20250920234519.work.915-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 70165dc commit fc998bc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/gcc-plugins/gcc-common.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,17 @@ inline bool is_a_helper<const gassign *>::test(const_gimple gs)
191191
}
192192
#endif
193193

194+
#if BUILDING_GCC_VERSION < 16000
194195
#define TODO_verify_ssa TODO_verify_il
195196
#define TODO_verify_flow TODO_verify_il
196197
#define TODO_verify_stmts TODO_verify_il
197198
#define TODO_verify_rtl_sharing TODO_verify_il
199+
#else
200+
#define TODO_verify_ssa 0
201+
#define TODO_verify_flow 0
202+
#define TODO_verify_stmts 0
203+
#define TODO_verify_rtl_sharing 0
204+
#endif
198205

199206
#define INSN_DELETED_P(insn) (insn)->deleted()
200207

0 commit comments

Comments
 (0)