public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
Date: Mon, 28 Jan 2013 19:05:00 -0000	[thread overview]
Message-ID: <bug-54314-4-lBwTHSYVe0@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54314-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #28 from Jan Hubicka <hubicka at ucw dot cz> 2013-01-28 19:05:40 UTC ---
> > 1) Just add the check.  We will then miss all devirtualization oppurtunities
> >    through the construction vtable.
> 
> The front end does devirtualization itself for calls within constructors, so
> the impact of this isn't likely to be too bad.

Does it cover all the cases we can potentially handle by middle-end? Or does it
stop
i.e. at function boundary?
On the other hand I would say that calls close to consturction are those that
are
likely to be devirtualized, so we should not ignore thoe.

> >    what happens on targets not supporting visibility?
> 
> I think that setting DECL_VISIBILITY should do the trick even if it isn't
> reflected in the assembly output.  I added the DECL_ARTIFICIAL check to
> default_assemble_visibility so that this wouldn't cause warnings.

Yes, that seem like way to go.
> 
> > 3) Perhaps we can use DECL_VALUE_EXPR or somethin similar to keep track of
> >    the canonical way to reffer into tthe construction vtable? (i.e. by
> > reference
> >    to vtable) We can then lower all direct references to the indirect
> >    references late, i.e. in expansion?
> 
> Hmm, that makes sense.

OK, if you help me with C++ bits, I can give this a try.

Honza


  parent reply	other threads:[~2013-01-28 19:05 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18 10:32 [Bug regression/54314] New: " vanboxem.ruben at gmail dot com
2012-08-18 14:54 ` [Bug regression/54314] " jojelino at gmail dot com
2012-08-20  7:00 ` [Bug c++/54314] [4.8 Regression] " rguenth at gcc dot gnu.org
2012-08-20 15:22 ` jojelino at gmail dot com
2012-08-20 16:15 ` jojelino at gmail dot com
2012-08-21 13:39 ` jojelino at gmail dot com
2012-08-21 20:10 ` jojelino at gmail dot com
2012-09-04 19:28 ` [Bug libstdc++/54314] " jason at gcc dot gnu.org
2012-09-05 10:25 ` paolo.carlini at oracle dot com
2012-09-10 11:45 ` ktietz at gcc dot gnu.org
2012-09-25  8:11 ` vanboxem.ruben at gmail dot com
2012-09-26  9:01 ` paolo.carlini at oracle dot com
2012-09-26  9:02 ` paolo.carlini at oracle dot com
2012-09-26 19:06 ` bkoz at gcc dot gnu.org
2012-09-26 20:09 ` ktietz at gcc dot gnu.org
2012-09-26 21:06 ` paolo.carlini at oracle dot com
2012-09-27  0:05 ` bkoz at gcc dot gnu.org
2012-09-27 17:05 ` bkoz at gcc dot gnu.org
2013-01-25 20:36 ` jason at gcc dot gnu.org
2013-01-25 20:37 ` jason at gcc dot gnu.org
2013-01-26  5:39 ` jason at gcc dot gnu.org
2013-01-26 10:06 ` jakub at gcc dot gnu.org
2013-01-26 10:39 ` jakub at gcc dot gnu.org
2013-01-26 18:32 ` hubicka at ucw dot cz
2013-01-27  1:45 ` jason at gcc dot gnu.org
2013-01-28 11:28 ` jakub at gcc dot gnu.org
2013-01-28 14:56 ` hubicka at ucw dot cz
2013-01-28 15:43 ` jason at gcc dot gnu.org
2013-01-28 19:05 ` hubicka at ucw dot cz [this message]
2013-01-29 17:25 ` jason at gcc dot gnu.org
2013-01-29 17:49 ` jason at gcc dot gnu.org
2013-02-04 10:16 ` ro at gcc dot gnu.org
2013-02-04 10:22 ` jakub at gcc dot gnu.org
2013-02-04 10:44 ` jakub at gcc dot gnu.org
2013-02-04 17:20 ` jakub at gcc dot gnu.org
2013-03-12 12:43 ` hubicka at gcc dot gnu.org
2013-03-12 13:06 ` jason at gcc dot gnu.org
2013-03-12 13:32 ` hubicka at ucw dot cz
2013-03-12 14:03 ` jason at gcc dot gnu.org
2013-09-10  9:46 ` pluto at agmk dot net
2013-09-10 15:30 ` pluto at agmk dot net
2013-09-10 16:19 ` ktietz at gcc dot gnu.org

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=bug-54314-4-lBwTHSYVe0@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).