Cherry-pick libsanitizer pointer-pair tristate option.
authorMartin Liska <mliska@suse.cz>
Mon, 5 Feb 2018 11:01:50 +0000 (12:01 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 5 Feb 2018 11:01:50 +0000 (11:01 +0000)
commit4c4f3c3fefc61ca5045a6c1d7592786e2cf57499
tree47f182084e3c2b708b3cf75ae1acf6cb4705feaf
parentba26157992975c2cdad2020571cdabf77a5b7c41
Cherry-pick libsanitizer pointer-pair tristate option.

2018-02-05  Martin Liska  <mliska@suse.cz>

* doc/invoke.texi: Cherry-pick upstream r323995.
2018-02-05  Martin Liska  <mliska@suse.cz>

* c-c++-common/asan/pointer-compare-1.c: Adjust ASAN_OPTIONS
options.
* c-c++-common/asan/pointer-compare-2.c: Likewise.
* c-c++-common/asan/pointer-subtract-1.c: Likewise.
* c-c++-common/asan/pointer-subtract-2.c: Likewise.
* c-c++-common/asan/pointer-subtract-3.c: Likewise.
* c-c++-common/asan/pointer-subtract-4.c: Likewise.
* c-c++-common/asan/pointer-compare-3.c: New test.
2018-02-05  Martin Liska  <mliska@suse.cz>

* asan/asan_flags.inc: Cherry-pick upstream r323995.
* asan/asan_report.cc (CheckForInvalidPointerPair):
Cherry-pick upstream r323995.

From-SVN: r257387
13 files changed:
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/pointer-compare-1.c
gcc/testsuite/c-c++-common/asan/pointer-compare-2.c
gcc/testsuite/c-c++-common/asan/pointer-compare-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/pointer-subtract-1.c
gcc/testsuite/c-c++-common/asan/pointer-subtract-2.c
gcc/testsuite/c-c++-common/asan/pointer-subtract-3.c
gcc/testsuite/c-c++-common/asan/pointer-subtract-4.c
libsanitizer/ChangeLog
libsanitizer/asan/asan_flags.inc
libsanitizer/asan/asan_report.cc