On Tue, Oct 13, 2020 at 1:17 AM Jakub Jelinek via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> On Tue, Oct 13, 2020 at 10:11:26AM +0200, Martin Liška wrote:
> > --- a/gcc/testsuite/g++.dg/asan/asan_test.C
> > +++ b/gcc/testsuite/g++.dg/asan/asan_test.C
> > @@ -9,6 +9,7 @@
> >  // { dg-additional-options "-DASAN_AVOID_EXPENSIVE_TESTS=1" { target { ! 
> > run_expensive_tests } } }
> >  // { dg-additional-options "-msse2" { target { i?86-*-linux* 
> > x86_64-*-linux* i?86-*-freebsd* x86_64-*-freebsd*} } }
> >  // { dg-additional-options "-D__NO_INLINE__" { target { *-*-linux-gnu } } }
> > +/* { dg-additional-options "-Wno-stringop-overflow" } */
>
> I'd put this one on the dg-options line next to other -Wno-* options.
> Otherwise LGTM.
>
> >  // { dg-set-target-env-var ASAN_OPTIONS "handle_segv=2" }
> >  // { dg-final { asan-gtest } }
> > diff --git a/gcc/testsuite/gcc.dg/asan/pr80166.c 
> > b/gcc/testsuite/gcc.dg/asan/pr80166.c
> > index 629dd23a31c..5e153b274fa 100644
> > --- a/gcc/testsuite/gcc.dg/asan/pr80166.c
> > +++ b/gcc/testsuite/gcc.dg/asan/pr80166.c
> > @@ -1,5 +1,6 @@
> >  /* PR sanitizer/80166 */
> >  /* { dg-do run } */
> > +/* { dg-additional-options "-Wno-stringop-overflow" } */
> >  #include <sys/types.h>
> >  #include <unistd.h>
> > --
> > 2.28.0
>
>         Jakub
>

Can you backport this to release branches?

Thanks.

-- 
H.J.

Reply via email to