diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-11-12 16:52:09 +0100 |
---|---|---|
committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2012-11-12 16:52:09 +0100 |
commit | dfb9e332a5ceefd6770c028d9a937ab869116cba (patch) | |
tree | c34ed654dedeeb0a8cfcdcee8759a1b4a17bad5b /gcc/passes.c | |
parent | f6d984843095c520ceb89cf374c7a13bb6a06a99 (diff) | |
download | gcc-dfb9e332a5ceefd6770c028d9a937ab869116cba.zip gcc-dfb9e332a5ceefd6770c028d9a937ab869116cba.tar.gz gcc-dfb9e332a5ceefd6770c028d9a937ab869116cba.tar.bz2 |
Allow asan at -O0
This patch defines a new asan pass gate that is activated at -O0, in
addition to the pass that was initially activated at -O3 level The
patch also does some comment cleanups here and there.
* asan.c (build_check_stmt): Rename join_bb variable to else_bb.
(gate_asan_O0): New function.
(pass_asan_O0): New variable.
* passes.c (init_optimization_passes): Add pass_asan_O0.
* tree-pass.h (pass_asan_O0): New declaration.
From-SVN: r193435
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 66a2f74..d4115b3 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1562,6 +1562,7 @@ init_optimization_passes (void) NEXT_PASS (pass_tm_edges); } NEXT_PASS (pass_lower_complex_O0); + NEXT_PASS (pass_asan_O0); NEXT_PASS (pass_cleanup_eh); NEXT_PASS (pass_lower_resx); NEXT_PASS (pass_nrv); |