public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Fabian Cenedese <Cenedese@indel.ch>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Dwarf in assembler file
Date: Thu, 30 Nov 2006 17:12:00 -0000	[thread overview]
Message-ID: <m3k61cj1um.fsf@localhost.localdomain> (raw)
In-Reply-To: <5.2.0.9.1.20061130170056.0189cb20@NT_SERVER>

Fabian Cenedese <Cenedese@indel.ch> writes:

> Why are there three symbols _ZN17_TASK_CLASS_NAME_D{0,1,2}Ev? They're all
> placed on the same source line .loc 3 120 0, contain exactly the same code. So what
> is the meaning/difference between these three? I also get two symbols for the constructor,
> also only differing in the last number.

These are required by the C++ ABI:
    http://codesourcery.com/cxx-abi/

base object destructor of a class T
    A function that runs the destructors for non-static data members
    of T and non-virtual direct base classes of T.

complete object destructor of a class T
    A function that, in addition to the actions required of a base
    object destructor, runs the destructors for the virtual base
    classes of T.

deleting destructor of a class T
    A function that, in addition to the actions required of a complete
    object destructor, calls the appropriate deallocation function
    (i.e,. operator delete) for T.

The compiler should do a better job of combining them, since they are
often the same.

Ian

  reply	other threads:[~2006-11-30 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30 16:10 Fabian Cenedese
2006-11-30 17:12 ` Ian Lance Taylor [this message]
2006-12-01  7:30   ` Fabian Cenedese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k61cj1um.fsf@localhost.localdomain \
    --to=iant@google.com \
    --cc=Cenedese@indel.ch \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).