On Mon, Jan 29, 2018 at 02:30:04PM +0100, Rainer Orth wrote: > --- a/gcc/testsuite/gcc.dg/debug/dwarf2/prod-options.c > +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/prod-options.c > @@ -4,8 +4,7 @@ > as well. */ > /* { dg-do compile } */ > /* { dg-options "-O2 -gdwarf -dA -fdebug-prefix-map=a=b" } */ > -/* { dg-final { scan-assembler "DW_AT_producer: \"GNU C" { target { { { ! > *-*-solaris2* } || gas } && { { ! hppa*64*-*-* } && { ! powerpc-ibm-aix* } } > } } } } */ > -/* { dg-final { scan-assembler "\"GNU C\[^\\n\\r\]+ DW_AT_producer" { target > { { *-*-solaris2* && { ! gas } } || { hppa*64*-*-* } } } } } */ > +/* { dg-final { scan-assembler "DW_AT_producer: \"GNU C|\"GNU C\[^\\n\\r\]+ > DW_AT_producer" } } */ > /* { dg-final { scan-assembler-not "debug-prefix-map" } } */
In this case, even better would be to add -fno-merge-debug-strings to dg-options and scan for just one pattern. Jakub