Allow asan at -O0
authorJakub Jelinek <jakub@redhat.com>
Mon, 12 Nov 2012 15:52:09 +0000 (16:52 +0100)
committerDodji Seketeli <dodji@gcc.gnu.org>
Mon, 12 Nov 2012 15:52:09 +0000 (16:52 +0100)
commitdfb9e332a5ceefd6770c028d9a937ab869116cba
treec34ed654dedeeb0a8cfcdcee8759a1b4a17bad5b
parentf6d984843095c520ceb89cf374c7a13bb6a06a99
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
gcc/ChangeLog
gcc/asan.c
gcc/passes.c
gcc/tree-pass.h