* tree-nomudflap.c (gate_mudflap): New static function.
(pass_mudflap_1): Use it as gate function.
(pass_mudflap_2): Likewise.
From-SVN: r128548
+2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
+
+ * tree-nomudflap.c (gate_mudflap): New static function.
+ (pass_mudflap_1): Use it as gate function.
+ (pass_mudflap_2): Likewise.
+
2007-09-17 Jan Hubicka <jh@suse.cz>
PR middle-end/33348
/* 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 */
struct tree_opt_pass pass_mudflap_2 =
{
"mudflap2", /* name */
- NULL, /* gate */
+ gate_mudflap, /* gate */
NULL, /* execute */
NULL, /* sub */
NULL, /* next */