This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: HPPA constructor merge patch, PR middle-end/45388
- From: Richard Henderson <rth at redhat dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gcc-patches at gcc dot gnu dot org, hubicka at ucw dot cz, dave at hiauly1 dot hia dot nrc dot ca
- Date: Mon, 27 Sep 2010 13:33:12 -0700
- Subject: Re: HPPA constructor merge patch, PR middle-end/45388
- References: <201009272029.o8RKTDM18735@lucas.cup.hp.com>
On 09/27/2010 01:29 PM, Steve Ellcey wrote:
> PR middle-end/45388
> * ipa.c: Set TREE_PUBLIC on constructors/destructors.
Not ok. Constructors should not be public when we
do have .ctor/.dtor support.
This is supposed to be handled in cgraph_build_static_cdtor,
if (!targetm.have_ctors_dtors)
{
TREE_PUBLIC (decl) = 1;
DECL_PRESERVE_P (decl) = 1;
}
there. Can you figure out if that bit isn't being triggered?
r~