scripts/gcc-plugins: Remove TODO flag
PATCH 1/1 scripts/gcc-plugins: Remove TODO flag
TODO_verify_il was removed by GCC at9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8
Direct link to GCC commit:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8
--- scripts/gcc-plugins/gcc-common.h | 5 ----- scripts/gcc-plugins/latent_entropy_plugin.c | 2 +- scripts/gcc-plugins/stackleak_plugin.c | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-)
scripts/gcc-plugins/gcc-common.h +0 -5
@@ -173,11 +173,6 @@ static inline opt_pass *get_pass_for_id(int id)return g->get_passes ()->get_pass_for_id (id); } -#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 -#define INSN_DELETED_P (insn) (insn)->deleted()static inline const char *get_decl_section_name (const_tree decl)
scripts/gcc-plugins/latent_entropy_plugin.c +1 -1
@@ -564,7 +564,7 @@ static void latent_entropy_start_unit(void *gcc_data __unused,#define PASS_NAME latent_entropy#define PROPERTIES_REQUIRED PROP_gimple_leh | PROP_cfg -#define TODO_FLAGS_FINISH TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func \ +#define TODO_FLAGS_FINISH TODO_dump_func \ | TODO_update_ssa#include "gcc-generate-gimple-pass.h"
scripts/gcc-plugins/stackleak_plugin.c +1 -2
@@ -503,8 +503,7 @@ static bool stackleak_instrument_gate(void)#define PASS_NAME stackleak_instrument#define PROPERTIES_REQUIRED PROP_gimple_leh | PROP_cfg -#define TODO_FLAGS_START TODO_verify_ssa | TODO_verify_flow | TODO_verify_stmts -#define TODO_FLAGS_FINISH TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func \ +#define TODO_FLAGS_FINISH TODO_dump_func \ | TODO_update_ssa | TODO_rebuild_cgraph_edges#include "gcc-generate-gimple-pass.h"
Signature · 1 line
2.51.0
Kees Cook
maintainerQuoted 34 lines · Christopher Fore
TODO_verify_ilwas removed by GCC at9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8Direct link to GCC commit:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8Signed-off-by Christopher Fore <[email protected]>---
scripts/gcc-plugins/gcc-common.h | 5 ----- scripts/gcc-plugins/latent_entropy_plugin.c | 2 +- scripts/gcc-plugins/stackleak_plugin.c | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-)scripts/gcc-plugins/gcc-common.h +0
-5@@ -173,11 +173,6 @@ static inline opt_pass *get_pass_for_id(int id)return g->get_passes ()->get_pass_for_id (id); } -#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 -#define INSN_DELETED_P (insn) (insn)->deleted()static inline const char *get_decl_section_name (const_tree decl)scripts/gcc-plugins/latent_entropy_plugin.c +0
-0
scripts/gcc-plugins/latent_entropy_plugin.c static void latent_entropy_start_unit(void *gcc_data __unused, · line 568
Quoted 6 lines
scripts/gcc-plugins/latent_entropy_plugin.c +1
-1@@ -564,7 +564,7 @@ static void latent_entropy_start_unit(void *gcc_data __unused,#define PASS_NAME latent_entropy#define PROPERTIES_REQUIRED PROP_gimple_leh | PROP_cfg -#define TODO_FLAGS_FINISH TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func \ +#define TODO_FLAGS_FINISH TODO_dump_func \ | TODO_update_ssa
It looks like you've replaced verify_ssa with update_ssa? Is this a valid option for all Linux supported GCC versions? (And is this the correct replacement?)
-Kees
Quoted 16 lines
scripts/gcc-plugins/latent_entropy_plugin.c +0
-0#include "gcc-generate-gimple-pass.h" scripts/gcc-plugins/stackleak_plugin.c +1
-2@@ -503,8 +503,7 @@ static bool stackleak_instrument_gate(void)#define PASS_NAME stackleak_instrument#define PROPERTIES_REQUIRED PROP_gimple_leh | PROP_cfg -#define TODO_FLAGS_START TODO_verify_ssa | TODO_verify_flow | TODO_verify_stmts -#define TODO_FLAGS_FINISH TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func \ +#define TODO_FLAGS_FINISH TODO_dump_func \ | TODO_update_ssa | TODO_rebuild_cgraph_edges#include "gcc-generate-gimple-pass.h"
Signature · 1 line
Kees Cook
Quoted 38 lines · Kees Cook
Quoted 36 lines · Christopher Fore
TODO_verify_ilwas removed by GCC at9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8Direct link to GCC commit:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8Signed-off-by Christopher Fore <[email protected]>---
scripts/gcc-plugins/gcc-common.h | 5 ----- scripts/gcc-plugins/latent_entropy_plugin.c | 2 +- scripts/gcc-plugins/stackleak_plugin.c | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-)scripts/gcc-plugins/gcc-common.h +0
-5@@ -173,11 +173,6 @@ static inline opt_pass *get_pass_for_id(int id)return g->get_passes ()->get_pass_for_id (id); } -#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 -#define INSN_DELETED_P (insn) (insn)->deleted()static inline const char *get_decl_section_name (const_tree decl)scripts/gcc-plugins/latent_entropy_plugin.c +0
-0@@ -564,7 +564,7 @@ static void latent_entropy_start_unit(void *gcc_data __unused,
Quoted 10 lines
scripts/gcc-plugins/latent_entropy_plugin.c static void latent_entropy_start_unit(void *gcc_data __unused, · line 568
Quoted 6 lines
scripts/gcc-plugins/latent_entropy_plugin.c +1
-1#define PASS_NAME latent_entropy#define PROPERTIES_REQUIRED PROP_gimple_leh | PROP_cfg -#define TODO_FLAGS_FINISH TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func \ +#define TODO_FLAGS_FINISH TODO_dump_func \ | TODO_update_ssaIt looks like you've replaced
verify_ssawithupdate_ssa? Is this a valid option for all Linux supported GCC versions? (And is this the correct replacement?)
update_ssa was already there, I think the git diff just misrepresented it, see here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/gcc-plugins/latent_entropy_plugin.c#n568
-Christopher
Quoted 20 lines
-Kees
Quoted 18 lines
#include "
gcc-generate-gimple-pass.h"scripts/gcc-plugins/stackleak_plugin.c +0
-1@@ -503,8 +503,7 @@ static bool stackleak_instrument_gate(void)#define PASS_NAME stackleak_instrument#define PROPERTIES_REQUIRED PROP_gimple_leh | PROP_cfg -#define TODO_FLAGS_START TODO_verify_ssa | TODO_verify_flow |
TODO_verify_stmts
-#defineTODO_FLAGS_FINISHTODO_verify_ssa|TODO_verify_stmts|TODO_dump_func\
+#defineTODO_FLAGS_FINISHTODO_dump_func\
|TODO_update_ssa|TODO_rebuild_cgraph_edges
#include "gcc-generate-gimple-pass.h"