2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
commitbf2b7c225c336e6e5acc38b731e62caa11e74976
authorchefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jan 2014 07:31:05 +0000 (9 07:31 +0000)
committerchefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jan 2014 07:31:05 +0000 (9 07:31 +0000)
tree58efd7774e722299ff68ff8583b43da062decab9
parent964c78273df75a75884113f4bcbab851fa074e0e
2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>

* cfgexpand.c (expand_stack_vars): Optionally disable
asan stack protection.
(expand_used_vars): Likewise.
(partition_stack_vars): Likewise.
* asan.c (asan_emit_stack_protection): Optionally disable
after return stack usage.
(instrument_derefs): Optionally disable memory
access instrumentation.
(instrument_builtin_call): Likewise.
(instrument_strlen_call): Likewise.
(asan_protect_global): Optionally disable
global variables protection.
* doc/invoke.texi: Added doc for new options.
* params.def: Added new options.
* params.h: Likewise.

2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>

* c-c++-common/asan/no-asan-globals.c: New test.
* c-c++-common/asan/no-instrument-reads.c: Likewise.
* c-c++-common/asan/no-instrument-writes.c: Likewise.
* c-c++-common/asan/use-after-return-1.c: Likewise.
* c-c++-common/asan/no-use-after-return.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206458 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/ChangeLog
gcc/asan.c
gcc/cfgexpand.c
gcc/doc/invoke.texi
gcc/params.def
gcc/params.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/no-asan-globals.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/no-instrument-reads.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/no-instrument-writes.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/no-use-after-return.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/use-after-return-1.c [new file with mode: 0644]