aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2013-05-29 15:47:28 +0000
committerDehao Chen <dehao@gcc.gnu.org>2013-05-29 15:47:28 +0000
commit0154ea95a161cc21b0d24367e983f281fc244633 (patch)
tree7207b1e7da40466648a357b6ce27c3fad743be29 /gcc
parent4fc43c398b6faac6cede5045a1b6f6c8855a4d7d (diff)
downloadgcc-0154ea95a161cc21b0d24367e983f281fc244633.zip
gcc-0154ea95a161cc21b0d24367e983f281fc244633.tar.gz
gcc-0154ea95a161cc21b0d24367e983f281fc244633.tar.bz2
re PR testsuite/57413 (FAIL: gcc.dg/debug/dwarf2/discriminator.c scan-assembler on x86_64-apple-darwin10, Solaris/x86)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c12
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3809f566..4dc91bc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c b/gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c
index 64434d2..d88a1f5 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c
@@ -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;