]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/Makefile.in
Initial import of asan from the Google branch
authorWei Mi <wmi@google.com>
Mon, 12 Nov 2012 15:51:13 +0000 (15:51 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Mon, 12 Nov 2012 15:51:13 +0000 (16:51 +0100)
commit37d6f666cae62d9d44c5aef4b2185e43635d5091
treeb87fd787f6078b7ba49ca0fefd8a3b30b94d2db9
parentabfc73778e24d6e8c407150d8071bc7fed755965
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 <dnovillo@google.com>
Co-Authored-By: Dodji Seketeli <dodji@redhat.com>
From-SVN: r193432
gcc/ChangeLog
gcc/Makefile.in
gcc/asan.c [new file with mode: 0644]
gcc/asan.h [new file with mode: 0644]
gcc/common.opt
gcc/doc/invoke.texi
gcc/passes.c
gcc/toplev.c
gcc/tree-pass.h