This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/49537] New: cross-check DW_AT_name vs. demangling of linkage names


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49537

           Summary: cross-check DW_AT_name vs. demangling of linkage names
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jan.kratochvil@redhat.com
                CC: dodji@gcc.gnu.org


PR debug/49408 shows DW_AT_name "K<&S::m>" vs. demangled
DW_AT_MIPS_linkage_name prefix "K<&(S::m(int))>".  This was due to a bug in
libiberty/cp-demangle.c.

http://gcc.gnu.org/ml/gcc/2011-06/msg00308.html
On Wed, Jun 22, 2011 at 10:42 AM, Jason Merrill <jason at redhat.com> wrote:
> Well, the basic issue is that the "linkage name" is produced
> by libiberty/cp-demangle.c and the DW_AT_name is produced by gcc/cp/error.c,
> and they don't always agree on the same pretty-printed representation
> of a C++ expression.

Therefore I believe there could be compile time sanity cross-check with ICE in
such cases, maybe more such bugs exist there already.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]