Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

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>

Kees Cook a40282dd 2bbdcf02

+7
+7
scripts/gcc-plugins/gcc-common.h
··· 173 173 return g->get_passes()->get_pass_for_id(id); 174 174 } 175 175 176 + #if BUILDING_GCC_VERSION < 16000 176 177 #define TODO_verify_ssa TODO_verify_il 177 178 #define TODO_verify_flow TODO_verify_il 178 179 #define TODO_verify_stmts TODO_verify_il 179 180 #define TODO_verify_rtl_sharing TODO_verify_il 181 + #else 182 + #define TODO_verify_ssa 0 183 + #define TODO_verify_flow 0 184 + #define TODO_verify_stmts 0 185 + #define TODO_verify_rtl_sharing 0 186 + #endif 180 187 181 188 #define INSN_DELETED_P(insn) (insn)->deleted() 182 189