diff options
author | Richard Biener <rguenther@suse.de> | 2015-03-25 12:07:10 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-03-25 12:07:10 +0000 |
commit | 2bb9e67fff9e16f18d720c7cb5babbd5523f789f (patch) | |
tree | b2692f1f8353de3aca6ebb68c07d438e665e9886 /gcc/passes.c | |
parent | ec5239093acb762ba5f2b118b46128f642a2e6f5 (diff) | |
download | gcc-2bb9e67fff9e16f18d720c7cb5babbd5523f789f.zip gcc-2bb9e67fff9e16f18d720c7cb5babbd5523f789f.tar.gz gcc-2bb9e67fff9e16f18d720c7cb5babbd5523f789f.tar.bz2 |
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
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 23a90d9..062ae4f0 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 |