> The attached patch restricts the test only run on linux-gnu targets. Is it ok?
Ideally we would restrict the test to those targets where HAVE_AS_DWARF2_DEBUG_LINE is set, but I don't think that can be done in dg. OK if no one suggests a way to do exactly that. -cary > gcc/ChangeLog: > > 2013-05-28 Dehao Chen <de...@google.com> > testsuite/debug/dwarf2/discriminator.c: Restrict the test to linux only. > > Index: gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c > =================================================================== > --- gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c (revision 199393) > +++ gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c (working copy) > @@ -1,4 +1,4 @@ > -/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */ > +/* { dg-do compile { target { i?86-*-linux-gnu x86_64-*-linux-gnu } } } */ > /* { dg-options "-O0 -gdwarf-2" } */ > /* { dg-final { scan-assembler "loc \[0-9] 9 \[0-9]( is_stmt \[0-9])?\n" } } > */ > /* { dg-final { scan-assembler "loc \[0-9] 9 \[0-9]( is_stmt \[0-9])? > discriminator 2\n" } } */