Message ID | 20200512192334.GL8462@tucnak |
---|---|
State | New |
Headers | show |
Series | testsuite: Fix up gcc.dg/asan/pr95051.c testcase [PR95051] | expand |
On 5/12/20 9:23 PM, Jakub Jelinek wrote: > Hi! > > On Tue, May 12, 2020 at 12:06:25PM -0700, H.J. Lu wrote: >> Excess errors: >> cc1: error: '-fsanitize=address' is incompatible with >> '-fsanitize=kernel-address' > > asan.exp adds -fsanitize=address which is incompatible with -fsanitize=kernel-address, > so we need to disable it first. Sorry for the breakage, I added this test late after I made tests. There's a simplification where the test-case failes also with -fsanitize=address -O2. Martin > > Tested on x86_64-linux -m32/-m64, committed to trunk as obvious. > > 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/gcc.dg/asan/pr95051.c.jj 2020-05-12 11:25:46.209148953 +0200 > +++ gcc/testsuite/gcc.dg/asan/pr95051.c 2020-05-12 21:12:28.170118274 +0200 > @@ -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 { > > > Jakub >
--- gcc/testsuite/gcc.dg/asan/pr95051.c.jj 2020-05-12 11:25:46.209148953 +0200 +++ gcc/testsuite/gcc.dg/asan/pr95051.c 2020-05-12 21:12:28.170118274 +0200 @@ -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 {