summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-30 20:52:41 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-30 20:56:19 +0300
commita52d8049be0399eb6da86b68c3b7e48575f31da8 (patch)
tree06a109329cca8bc0b7b2c6d9593475e2482f91f0
parent7824df2b3e51f10dc5a8452f6e8ac292b0e113ec (diff)
downloadmv-a52d8049be0399eb6da86b68c3b7e48575f31da8.tar.gz
mv-a52d8049be0399eb6da86b68c3b7e48575f31da8.tar.bz2
mv-a52d8049be0399eb6da86b68c3b7e48575f31da8.tar.xz
mv-a52d8049be0399eb6da86b68c3b7e48575f31da8.zip
Add additional sanitize flags into gcc-7 / gcc-snapshot builds.
-rwxr-xr-xtools/ci/jobs/gcc7_sanitize.sh4
-rwxr-xr-xtools/ci/jobs/gcc7_sanitize_tests.sh4
-rwxr-xr-xtools/ci/jobs/gccsnapshot_sanitize_tests.sh4
3 files changed, 12 insertions, 0 deletions
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"