mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
gcc-plugins: consolidate on PASS_INFO macro
Now that PASS_INFO() exists, use it in the other existing gcc plugins, instead of always open coding the same thing. Based on updates to the grsecurity/PaX gcc plugins. Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
8d4973a1c0
commit
5a45a4c5c3
3 changed files with 5 additions and 17 deletions
|
@ -52,12 +52,8 @@ static unsigned int cyc_complexity_execute(void)
|
|||
__visible int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version)
|
||||
{
|
||||
const char * const plugin_name = plugin_info->base_name;
|
||||
struct register_pass_info cyc_complexity_pass_info;
|
||||
|
||||
cyc_complexity_pass_info.pass = make_cyc_complexity_pass();
|
||||
cyc_complexity_pass_info.reference_pass_name = "ssa";
|
||||
cyc_complexity_pass_info.ref_pass_instance_number = 1;
|
||||
cyc_complexity_pass_info.pos_op = PASS_POS_INSERT_AFTER;
|
||||
PASS_INFO(cyc_complexity, "ssa", 1, PASS_POS_INSERT_AFTER);
|
||||
|
||||
if (!plugin_default_version_check(version, &gcc_version)) {
|
||||
error(G_("incompatible gcc/plugin versions"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue