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: Jan Hubicka <hubicka at ucw dot cz>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 14 May 2013 10:57:25 +0200
- 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> <518B3C11 dot 7070103 at acm dot org> <5190B55C dot 7060303 at acm dot org> <20130513130946 dot GA8726 at kam dot mff dot cuni dot cz> <5191D598 dot 6080305 at acm dot org>
> On 05/13/13 14:09, Jan Hubicka wrote:
> >>Index: varasm.c
> >>===================================================================
>
> >I think DECL_COMDAT is not what you really want to return true for. So perhaps
> >you really want (TREE_PUBLIC (decl) && decl_binds_to_current_def_p)?
>
> Like this? This too fixes the problem, tested on powerpc-linux target.
Yes, it looks good to me :)
Honza