On Fri, Nov 01, 2019 at 03:09:39PM -0600, Martin Sebor wrote: > * gcc.dg/pr36902.c: Remove xfail.
> --- a/gcc/testsuite/gcc.dg/pr36902.c > +++ b/gcc/testsuite/gcc.dg/pr36902.c > @@ -44,7 +44,7 @@ foo2(unsigned char * to, const unsigned char * from, int n) > *to = *from; > break; > case 5: > - to[4] = from [4]; /* { dg-warning "array subscript is above array > bounds" "" { xfail *-*-* } } */ > + to[4] = from [4]; /* { dg-warning "\\\[-Warray-bounds } */ > break; > } > return to; This FAILs: +ERROR: gcc.dg/pr36902.c: missing " for " dg-warning 47 "\\\\\\[-Warray-bounds " +ERROR: gcc.dg/pr36902.c: missing " for " dg-warning 47 "\\\\\\[-Warray-bounds " Fixed thusly, regtested on x86_64-linux and i686-linux, committed to trunk as obvious: 2019-11-02 Jakub Jelinek <ja...@redhat.com> * gcc.dg/pr36902.c: Terminate dg-warning regexp string. --- gcc/testsuite/gcc.dg/pr36902.c.jj 2019-11-01 22:19:48.757844885 +0100 +++ gcc/testsuite/gcc.dg/pr36902.c 2019-11-02 00:21:00.556117852 +0100 @@ -44,7 +44,7 @@ foo2(unsigned char * to, const unsigned *to = *from; break; case 5: - to[4] = from [4]; /* { dg-warning "\\\[-Warray-bounds } */ + to[4] = from [4]; /* { dg-warning "\\\[-Warray-bounds" } */ break; } return to; Jakub