From 6e872811464621776df4021e028a536c97a43eba Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 17 Sep 2007 15:15:16 +0000 Subject: tree-nomudflap.c (gate_mudflap): New static function. * tree-nomudflap.c (gate_mudflap): New static function. (pass_mudflap_1): Use it as gate function. (pass_mudflap_2): Likewise. From-SVN: r128548 --- gcc/tree-nomudflap.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc/tree-nomudflap.c') diff --git a/gcc/tree-nomudflap.c b/gcc/tree-nomudflap.c index e48aff2..a59b9da 100644 --- a/gcc/tree-nomudflap.c +++ b/gcc/tree-nomudflap.c @@ -84,10 +84,16 @@ mf_mark (tree t ATTRIBUTE_UNUSED) /* The pass structures must exist, but need not do anything. */ +static bool +gate_mudflap (void) +{ + return flag_mudflap != 0; +} + struct tree_opt_pass pass_mudflap_1 = { "mudflap1", /* name */ - NULL, /* gate */ + gate_mudflap, /* gate */ NULL, /* execute */ NULL, /* sub */ NULL, /* next */ @@ -104,7 +110,7 @@ struct tree_opt_pass pass_mudflap_1 = struct tree_opt_pass pass_mudflap_2 = { "mudflap2", /* name */ - NULL, /* gate */ + gate_mudflap, /* gate */ NULL, /* execute */ NULL, /* sub */ NULL, /* next */ -- cgit v1.1