From: Richard Biener Date: Wed, 25 Mar 2015 12:07:10 +0000 (+0000) Subject: passes.c (pass_manager::execute_early_local_passes): Guard execution of pass_chkp_ins... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bb9e67fff9e16f18d720c7cb5babbd5523f789f;p=gcc.git 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 * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 66e0b2c7cfb..b4c8aff8cb2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-03-25 Richard Biener + + * 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 PR tree-optimization/65538 diff --git a/gcc/passes.c b/gcc/passes.c index 23a90d9e2eb..062ae4f0d1b 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -156,7 +156,8 @@ void pass_manager::execute_early_local_passes () { execute_pass_list (cfun, pass_build_ssa_passes_1->sub); - execute_pass_list (cfun, pass_chkp_instrumentation_passes_1->sub); + if (flag_check_pointer_bounds) + execute_pass_list (cfun, pass_chkp_instrumentation_passes_1->sub); execute_pass_list (cfun, pass_local_optimization_passes_1->sub); } @@ -424,7 +425,8 @@ public: virtual bool gate (function *) { /* 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