public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35201]  New: libdemangle no longer distinguishes constructor/destructor variants
@ 2008-02-14 20:30 sanjay3000 at gmail dot com
  2008-07-10  5:50 ` [Bug c++/35201] " ian at airs dot com
  0 siblings, 1 reply; 2+ messages in thread
From: sanjay3000 at gmail dot com @ 2008-02-14 20:30 UTC (permalink / raw)
  To: gcc-bugs

The C++ ABI at http://www.codesourcery.com/cxx-abi/abi.html defines:

 <ctor-dtor-name> ::= C1 # complete object constructor
     ::= C2 # base object constructor
     ::= C3 # complete object allocating constructor
     ::= D0 # deleting destructor
     ::= D1 # complete object destructor
     ::= D2 # base object destructor

However, libdemange/c++filt no longer translate those specifiers. I think this
is a regression from previous revisions of the library. They used to specify
"in-charge" or other strings for the various ctor/dtor flavors.

Example of raw constructor string:
_ZN9DagSymbolC2Ev
_ZN9DagSymbolC1Ev

These both are demangled as:
DagSymbol::DagSymbol()


-- 
           Summary: libdemangle no longer distinguishes
                    constructor/destructor variants
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sanjay3000 at gmail dot com


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/35201] libdemangle no longer distinguishes constructor/destructor variants
  2008-02-14 20:30 [Bug c++/35201] New: libdemangle no longer distinguishes constructor/destructor variants sanjay3000 at gmail dot com
@ 2008-07-10  5:50 ` ian at airs dot com
  0 siblings, 0 replies; 2+ messages in thread
From: ian at airs dot com @ 2008-07-10  5:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ian at airs dot com  2008-07-10 05:49 -------
Yes, the old demangler printed additional text in some cases when DMGL_VERBOSE
was passed as a flag.  c++filt passes that flag.  The new demangler doesn't
print that additional text.  There are several FIXME comments in
libiberty/cp-demangle.c which marks the places which could or should be
changed.


-- 

ian at airs dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|ian at gcc dot gnu dot org  |ian at airs dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-07-10 05:49:25
               date|                            |


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-10  5:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 20:30 [Bug c++/35201] New: libdemangle no longer distinguishes constructor/destructor variants sanjay3000 at gmail dot com
2008-07-10  5:50 ` [Bug c++/35201] " ian at airs dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).