public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jason at gcc dot gnu.org" <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: Sun, 27 Jan 2013 01:45:00 -0000	[thread overview]
Message-ID: <bug-54314-4-TGhJR2mpIH@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 #24 from Jason Merrill <jason at gcc dot gnu.org> 2013-01-27 01:44:49 UTC ---
(In reply to comment #21)
> I must say I'm surprised by the gimple-fold.c test, I'd really expect
> additional && DECL_VISIBILITY (decl) != VISIBILITY_DEFAULT .

I'd actually expect DECL_VISIBILITY (decl) < VISIBILITY_PROTECTED, and not
check DECL_VISIBILITY_SPECIFIED at all.  I don't think it matters whether the
visibility that the decl ends up with is specified or inferred.

> Another alternative to make those always hidden (which could be an exported
> ABI change for some shared libraries, though unlikely to be actually a real
> problem)

At worst, it removes some unnecessarily exported symbols.  Which might cause
ABI checkers to complain, but nothing else should refer to them; if something
else had, we would have seen this bug before.  I think marking them as hidden
is desirable, as it avoids unnecessary exports for user libraries that don't
use linker scripts or explicit visibility as well as fixing this bug.

(In reply to comment #23)
> It seems C++ frontend has to mark those
> declarations as unusable for referencing.  Is it easy to do on C++ side?
> I think we want tree visibility flag here, because we do not really represent
> stuff that may get into the game with TBAA.

I don't understand.  My patch sets DECL_VISIBILITY to hidden; are you talking
about a different tree visibility flag?


  parent reply	other threads:[~2013-01-27  1:45 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 [this message]
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
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-TGhJR2mpIH@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).