On Mon, 2014-10-06 at 09:38 +0200, Andreas Schwab wrote: > Mark Wielaard <m...@redhat.com> writes: > > > diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C > > b/gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C > > new file mode 100644 > > index 0000000..4cc77e6 > > --- /dev/null > > +++ b/gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C > > @@ -0,0 +1,17 @@ > > +// { dg-do compile } > > +// { dg-options "-O -std=c++11 -g -dA" } > > +// { dg-final { scan-assembler-times "# DW_AT_GNU_deleted" 2 } } > > $ grep DW_AT_GNU_deleted deleted-member-function.s > // DW_AT_GNU_deleted > // DW_AT_GNU_deleted > .uleb128 0x211a // (DW_AT_GNU_deleted) > .uleb128 0x211a // (DW_AT_GNU_deleted)
With gcc master this testcase gives: $ grep DW_AT_GNU_deleted deleted-member-function.s # DW_AT_GNU_deleted # DW_AT_GNU_deleted .uleb128 0x211a # (DW_AT_GNU_deleted) .uleb128 0x211a # (DW_AT_GNU_deleted) Somehow in your version the # comment turned into // ? 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. If it is something that can be fixed through setting a dg-options that would be preferable I think. Cheers, Mark