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
This commit is contained in:
parent
346d392350
commit
6e87281146
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user