[ASan] Report illegal instruction exceptions in ASan
authorReid Kleckner <rnk@google.com>
Wed, 3 Aug 2016 18:13:14 +0000 (18:13 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 3 Aug 2016 18:13:14 +0000 (18:13 +0000)
commit222610bf100cfe15730f60f8f5dc35782cb99ce1
tree94218352d0736391588a26eb5b7a1fd8c8f6df56
parent0554d25eb3ff62d6c80097df6a5cecbbc92bfaeb
[ASan] Report illegal instruction exceptions in ASan

Summary:
Respect the handle_sigill common flag and handle_segv flags while we're
at it.

We still handle signals/exceptions differently on Unix and Windows. The
installation process is tricky on Windows, and difficult to push down
into sanitizer_common without concerning it with the different
static/dynamic CRT models on Windows.

Reviewers: kcc, etienneb

Subscribers: llvm-commits, kubabrecka

Differential Revision: https://reviews.llvm.org/D23098

llvm-svn: 277621
compiler-rt/lib/asan/asan_win.cc
compiler-rt/lib/sanitizer_common/CMakeLists.txt
compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc
compiler-rt/test/asan/TestCases/ill.cc [new file with mode: 0644]