Commit 2bb9e67f by Richard Biener Committed by Richard Biener

passes.c (pass_manager::execute_early_local_passes): Guard execution of…

passes.c (pass_manager::execute_early_local_passes): Guard execution of pass_chkp_instrumentation_passes with flag_check_pointer_bounds.

2015-03-25  Richard Biener  <rguenther@suse.de>

	* passes.c (pass_manager::execute_early_local_passes): Guard
	execution of pass_chkp_instrumentation_passes with
	flag_check_pointer_bounds.
	(pass_chkp_instrumentation_passes::gate): Likewise.

From-SVN: r221660
parent ec523909
2015-03-25 Richard Biener <rguenther@suse.de>
* passes.c (pass_manager::execute_early_local_passes): Guard
execution of pass_chkp_instrumentation_passes with
flag_check_pointer_bounds.
(pass_chkp_instrumentation_passes::gate): Likewise.
2015-03-25 Martin Liska <mliska@suse.cz> 2015-03-25 Martin Liska <mliska@suse.cz>
PR tree-optimization/65538 PR tree-optimization/65538
......
...@@ -156,6 +156,7 @@ void ...@@ -156,6 +156,7 @@ void
pass_manager::execute_early_local_passes () pass_manager::execute_early_local_passes ()
{ {
execute_pass_list (cfun, pass_build_ssa_passes_1->sub); execute_pass_list (cfun, pass_build_ssa_passes_1->sub);
if (flag_check_pointer_bounds)
execute_pass_list (cfun, pass_chkp_instrumentation_passes_1->sub); execute_pass_list (cfun, pass_chkp_instrumentation_passes_1->sub);
execute_pass_list (cfun, pass_local_optimization_passes_1->sub); execute_pass_list (cfun, pass_local_optimization_passes_1->sub);
} }
...@@ -424,7 +425,8 @@ public: ...@@ -424,7 +425,8 @@ public:
virtual bool gate (function *) virtual bool gate (function *)
{ {
/* Don't bother doing anything if the program has errors. */ /* Don't bother doing anything if the program has errors. */
return (!seen_error () && !in_lto_p); return (flag_check_pointer_bounds
&& !seen_error () && !in_lto_p);
} }
}; // class pass_chkp_instrumentation_passes }; // class pass_chkp_instrumentation_passes
......
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