This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make some comdats implicitly hidden
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Aug 2013 14:56:36 +0200
- Subject: Re: Make some comdats implicitly hidden
- Authentication-results: sourceware.org; auth=none
- References: <20130826195724 dot GB13069 at kam dot mff dot cuni dot cz> <521BFB17 dot 5000902 at redhat dot com> <20130828172318 dot GB3513 at kam dot mff dot cuni dot cz> <521E6B5F dot 1070305 at redhat dot com> <20130829081148 dot GA11983 at kam dot mff dot cuni dot cz> <521F10C2 dot 4040001 at oracle dot com> <20130829121907 dot GA20627 at kam dot mff dot cuni dot cz> <521F42F2 dot 4060804 at oracle dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Aug 29, 2013 at 02:47:46PM +0200, Paolo Carlini wrote:
> On 08/29/2013 02:19 PM, Jan Hubicka wrote:
> >So my belief is that it is safe to drop those symbols from
> >libstdc++. Every program/DSO using them have to define its own
> >copy of those symbols, so I believe removing them from libstdc++
> >won't cause issues.
> Really, you should check with Jakub before proceeding. I the change
> it's Ok with him, it's Ok with me too (the other library maintainers
> should be in CC however). At minimum the baselines would need
> updating.
I'm very nervous about removing any exported symbols, apps could dlsym them
or whatever. So, if the compiler makes those hidden, either there should be
an option to restore the old behavior and libstdc++ should use it, or we
need some renaming/alias hacks to restore those.
Jakub