This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: section anchors and weak hidden symbols
- From: Nathan Sidwell <nathan at acm dot org>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 09 May 2013 07:02:57 +0100
- Subject: Re: section anchors and weak hidden symbols
- References: <518A3D8E dot 5020800 at acm dot org> <20130508131118 dot GA23785 at atrey dot karlin dot mff dot cuni dot cz> <518A56B7 dot 6060902 at acm dot org> <20130508174751 dot GD2415 at kam dot mff dot cuni dot cz>
On 05/08/13 18:47, Jan Hubicka wrote:
On 05/08/13 14:11, Jan Hubicka wrote:
* a new function or hook 'binds_here_p' (and any default
implementations needed). Returns true if the symbol is known to
bind in the object file being emitted by the current compilation.
Thinking about it again, isn't decl_replaceable_p the thing you are looking for
here?
that looks promising. I'll try !decl_replaceable_p in the section anchor hook.
I wonder if we can come with something more clearly named.
When it comes to weird predicates on symbols, we also have
can_refer_decl_in_current_unit_p.
thanks for your comments, if decl_replaceable_p is the right existing predicate,
that does make figuring out the right set of names less urgent.
nathan