testsuite: Fix up gcc.dg/asan/pr95051.c testcase [PR95051]
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 May 2020 19:21:30 +0000 (21:21 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 12 May 2020 19:21:30 +0000 (21:21 +0200)
asan.exp adds -fsanitize=address which is incompatible with -fsanitize=kernel-address,
so we need to disable it first.

2020-05-12  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/95051
* gcc.dg/asan/pr95051.c: Add -fno-sanitize=all to dg-options.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr95051.c

index 8935bee0fbe122c0f375322f38b0a1cfb0f126b9..34f48e7f2a4fee9dfb01d5afedce3bf59746a2a6 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-12  Jakub Jelinek  <jakub@redhat.com>
+
+       PR sanitizer/95051
+       * gcc.dg/asan/pr95051.c: Add -fno-sanitize=all to dg-options.
+
 2020-05-12  Uroš Bizjak  <ubizjak@gmail.com>
 
        PR target/95046
index ec41a831299b1393183b9ac967d997b761e775a1..caa5e667209f0a8eb6cdb38cb6105c5e30bf0307 100644 (file)
@@ -1,6 +1,6 @@
 /* PR sanitizer/95051 */
 /* { dg-do compile } */
-/* { dg-options "-fsanitize=kernel-address --param=asan-stack=1 -O2" } */
+/* { dg-options "-fno-sanitize=all -fsanitize=kernel-address --param=asan-stack=1 -O2" } */
 
 struct a {
   struct {