From ac627eb4162d31aa4d009c3c9a8da7dfd6cc34e0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 12 May 2020 21:21:30 +0200 Subject: [PATCH] testsuite: Fix up gcc.dg/asan/pr95051.c testcase [PR95051] asan.exp adds -fsanitize=address which is incompatible with -fsanitize=kernel-address, so we need to disable it first. 2020-05-12 Jakub Jelinek PR sanitizer/95051 * gcc.dg/asan/pr95051.c: Add -fno-sanitize=all to dg-options. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/asan/pr95051.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8935bee0fbe..34f48e7f2a4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-05-12 Jakub Jelinek + + PR sanitizer/95051 + * gcc.dg/asan/pr95051.c: Add -fno-sanitize=all to dg-options. + 2020-05-12 Uroš Bizjak PR target/95046 diff --git a/gcc/testsuite/gcc.dg/asan/pr95051.c b/gcc/testsuite/gcc.dg/asan/pr95051.c index ec41a831299..caa5e667209 100644 --- a/gcc/testsuite/gcc.dg/asan/pr95051.c +++ b/gcc/testsuite/gcc.dg/asan/pr95051.c @@ -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 { -- 2.30.2