This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] PR debug/63239 Add DWARF representation for C++11 deleted member function.
- From: Mark Wielaard <mjw at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, jason at redhat dot com, jwakely at redhat dot com, dodji at redhat dot com
- Date: Mon, 06 Oct 2014 09:54:44 +0200
- Subject: Re: [PATCH 1/2] PR debug/63239 Add DWARF representation for C++11 deleted member function.
- Authentication-results: sourceware.org; auth=none
- References: <1412341922-7891-1-git-send-email-mjw at redhat dot com> <mvm8ukthclg dot fsf at hawking dot suse dot de>
On Mon, 2014-10-06 at 09:38 +0200, Andreas Schwab wrote:
> Mark Wielaard <mjw@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