re PR testsuite/57413 (FAIL: gcc.dg/debug/dwarf2/discriminator.c scan-assembler on...
authorDehao Chen <dehao@google.com>
Wed, 29 May 2013 15:47:28 +0000 (15:47 +0000)
committerDehao Chen <dehao@gcc.gnu.org>
Wed, 29 May 2013 15:47:28 +0000 (15:47 +0000)
2013-05-29  Dehao Chen  <dehao@google.com>

PR testsuite/57413
* gcc.dg/debug/dwarf2/discriminator.c: Restrict the test to linux-gnu.

From-SVN: r199412

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c

index 3809f56688c331a33deeb498da1298fb7c2439cb..4dc91bcec9d32b36f98060fb6902a942786a2be3 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-29  Dehao Chen  <dehao@google.com>
+
+       PR testsuite/57413
+       * gcc.dg/debug/dwarf2/discriminator.c: Restrict the test to linux-gnu.
+
 2013-05-28  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/37336
index 64434d2801e1fcfcdbbf1769af454c0a53b58f73..d88a1f5332bd22aa7de971298b482fad84f78a60 100644 (file)
@@ -1,8 +1,10 @@
-/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
-/* { 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" } } */
-/* { dg-final { scan-assembler "loc \[0-9] 9 \[0-9]( is_stmt \[0-9])? discriminator 1\n" } } */
+/* HAVE_AS_DWARF2_DEBUG_LINE macro needs to be defined to pass the unittest.
+   However, there dg cannot defin it as, so we restrict the target to linux.  */
+/* { dg-do compile { target *-*-linux-gnu } } */
+/* { dg-additional-options "-O0" } */
+/* { dg-final { scan-assembler "loc \[0-9] 11 \[0-9]( is_stmt \[0-9])?\n" } } */
+/* { dg-final { scan-assembler "loc \[0-9] 11 \[0-9]( is_stmt \[0-9])? discriminator 2\n" } } */
+/* { dg-final { scan-assembler "loc \[0-9] 11 \[0-9]( is_stmt \[0-9])? discriminator 1\n" } } */
 
 int foo(int n) {
   int i, ret = 0;