On Wed, 2014-10-08 at 10:56 +0200, Rainer Orth wrote:
> Steven Bosscher <stevenb....@gmail.com> writes:
> > On Mon, Oct 6, 2014 at 9:54 AM, Mark Wielaard wrote:
> >> Just removing the # prefix (but keeping the space) from
> >> scan-assembler-times should work for both our cases. I just don't know
> >> why our .s outputs look different.
> >
> > Wild guess: different comment marker in the target's assembly language?
> 
> True: on Solaris/x86 with /bin/as, I have
> 
>                         / DW_AT_GNU_deleted
> 
> on Solaris/SPARC with /bin/as, it's
> 
>         .byte   0x1     ! DW_AT_GNU_deleted
> 
> instead, and probably even more others on different platforms.

Thanks for checking this was the cause of the failure Andreas was
seeing. I pushed the following as obvious to fix it. Please yell and
scream if it wasn't obvious or if it doesn't solve the failure.

Cheers,

Mark

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 723412c..21b2c26 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-08  Mark Wielaard  <m...@redhat.com>
+
+       * g++.dg/debug/dwarf2/deleted-member-function.C: Remove comment marker
+       prefix from scan-assembler-times.
+
 2014-10-07  Marek Polacek  <pola...@redhat.com>
 
        * lib/target-supports.exp (check_effective_target_fd_truncate):
diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C 
b/gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C
index 4cc77e6..50a8451 100644
--- a/gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C
+++ b/gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C
@@ -1,6 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -std=c++11 -g -dA" }
-// { dg-final { scan-assembler-times "# DW_AT_GNU_deleted" 2 } }
+// { dg-final { scan-assembler-times " DW_AT_GNU_deleted" 2 } }
 
 struct Foo
 {

Reply via email to