From 2d5ff99640b336ff12fc89fc580a918e3977417e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Dec 2017 20:52:41 +0300 Subject: Add additional sanitize flags into gcc-7 / gcc-snapshot builds. --- tools/ci/jobs/gcc7_sanitize.sh | 4 ++++ tools/ci/jobs/gcc7_sanitize_tests.sh | 4 ++++ tools/ci/jobs/gccsnapshot_sanitize_tests.sh | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tools/ci/jobs/gcc7_sanitize.sh b/tools/ci/jobs/gcc7_sanitize.sh index 1a4a2091d..eba105111 100755 --- a/tools/ci/jobs/gcc7_sanitize.sh +++ b/tools/ci/jobs/gcc7_sanitize.sh @@ -23,6 +23,10 @@ export CXXFLAGS="$CXXFLAGS -pedantic -ggdb3 -O2 -pipe -Wstrict-aliasing=2 \ -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \ -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \ -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict \ +-fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak \ +-fsanitize=shift-exponent -fsanitize=shift-base -fsanitize=bounds-strict \ +-fsanitize=pointer-overflow -fsanitize=builtin \ +-fsanitize-address-use-after-scope \ -std=gnu++1z -Wformat=1 \ -Wno-attributes -fno-omit-frame-pointer" diff --git a/tools/ci/jobs/gcc7_sanitize_tests.sh b/tools/ci/jobs/gcc7_sanitize_tests.sh index 154b22c5b..1bf08aa6d 100755 --- a/tools/ci/jobs/gcc7_sanitize_tests.sh +++ b/tools/ci/jobs/gcc7_sanitize_tests.sh @@ -24,6 +24,10 @@ export CXXFLAGS="$CXXFLAGS -pedantic -ggdb3 -O2 -Wstrict-aliasing=2 \ -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \ -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \ -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict \ +-fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak \ +-fsanitize=shift-exponent -fsanitize=shift-base -fsanitize=bounds-strict \ +-fsanitize=pointer-overflow -fsanitize=builtin \ +-fsanitize-address-use-after-scope \ -std=gnu++1z -Wformat=1 \ -Wno-attributes" diff --git a/tools/ci/jobs/gccsnapshot_sanitize_tests.sh b/tools/ci/jobs/gccsnapshot_sanitize_tests.sh index d3da359c4..5b0b3bb31 100755 --- a/tools/ci/jobs/gccsnapshot_sanitize_tests.sh +++ b/tools/ci/jobs/gccsnapshot_sanitize_tests.sh @@ -29,6 +29,10 @@ export CXXFLAGS="$CXXFLAGS -pedantic -ggdb3 -O2 -Wstrict-aliasing=2 \ -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \ -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool \ -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict \ +-fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak \ +-fsanitize=shift-exponent -fsanitize=shift-base -fsanitize=bounds-strict \ +-fsanitize=pointer-overflow -fsanitize=builtin \ +-fsanitize-address-use-after-scope \ -std=gnu++1z -Wformat=1 \ -Wno-attributes" -- cgit v1.2.3-70-g09d2