From 37d6f666cae62d9d44c5aef4b2185e43635d5091 Mon Sep 17 00:00:00 2001 From: Wei Mi Date: Mon, 12 Nov 2012 15:51:13 +0000 Subject: Initial import of asan from the Google branch This patch imports the initial state of asan as it was in the Google branch. It provides basic infrastructure for asan to instrument memory accesses on the heap, at -O3. Note that it supports neither stack nor global variable protection. The rest of the patches of the set is intended to further improve this base. gcc/ChangeLog * Makefile.in: Add asan.c and its dependencies. * common.opt: Add -faddress-sanitizer option. * invoke.texi: Document the new flag. * passes.c: Add the asan pass. * toplev.c (compile_file): Call asan_finish_file. * asan.c: New file. * asan.h: New file. * tree-pass.h: Declare pass_asan. Co-Authored-By: Diego Novillo Co-Authored-By: Dodji Seketeli From-SVN: r193432 --- gcc/passes.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/passes.c') diff --git a/gcc/passes.c b/gcc/passes.c index 67aae52..66a2f74 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1456,6 +1456,7 @@ init_optimization_passes (void) NEXT_PASS (pass_split_crit_edges); NEXT_PASS (pass_pre); NEXT_PASS (pass_sink_code); + NEXT_PASS (pass_asan); NEXT_PASS (pass_tree_loop); { struct opt_pass **p = &pass_tree_loop.pass.sub; -- cgit v1.1