Skip to content

Commit 0424e4e

Browse files
keesgregkh
authored andcommitted
gcc-plugins: Remove TODO_verify_il for GCC >= 16
commit a40282dd3c484e6c882e93f4680e0a3ef3814453 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 392b1d6 commit 0424e4e

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
@@ -173,10 +173,17 @@ static inline opt_pass *get_pass_for_id(int id)
173173
return g->get_passes()->get_pass_for_id(id);
174174
}
175175

176+
#if BUILDING_GCC_VERSION < 16000
176177
#define TODO_verify_ssa TODO_verify_il
177178
#define TODO_verify_flow TODO_verify_il
178179
#define TODO_verify_stmts TODO_verify_il
179180
#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
180187

181188
#define INSN_DELETED_P(insn) (insn)->deleted()
182189

0 commit comments

Comments
 (0)