Commit 6e872811 by Eric Botcazou Committed by Eric Botcazou

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
parent 346d3923
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> 2007-09-17 Jan Hubicka <jh@suse.cz>
PR middle-end/33348 PR middle-end/33348
...@@ -84,10 +84,16 @@ mf_mark (tree t ATTRIBUTE_UNUSED) ...@@ -84,10 +84,16 @@ mf_mark (tree t ATTRIBUTE_UNUSED)
/* The pass structures must exist, but need not do anything. */ /* 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 = struct tree_opt_pass pass_mudflap_1 =
{ {
"mudflap1", /* name */ "mudflap1", /* name */
NULL, /* gate */ gate_mudflap, /* gate */
NULL, /* execute */ NULL, /* execute */
NULL, /* sub */ NULL, /* sub */
NULL, /* next */ NULL, /* next */
...@@ -104,7 +110,7 @@ struct tree_opt_pass pass_mudflap_1 = ...@@ -104,7 +110,7 @@ struct tree_opt_pass pass_mudflap_1 =
struct tree_opt_pass pass_mudflap_2 = struct tree_opt_pass pass_mudflap_2 =
{ {
"mudflap2", /* name */ "mudflap2", /* name */
NULL, /* gate */ gate_mudflap, /* gate */
NULL, /* execute */ NULL, /* execute */
NULL, /* sub */ NULL, /* sub */
NULL, /* next */ NULL, /* next */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment